diff options
author | Aki <please@ignore.pl> | 2021-10-01 23:18:37 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-01 23:45:14 +0200 |
commit | 104ad1eaba7ada2d5f9b18ced70d06721908f0be (patch) | |
tree | bfe5554351fca55676aaa860fc89302d80d2de14 /Opcode/OpcodeLib/Ice/IceSegment.h | |
parent | 5e6773397cc101c7c3d08482efc456daa91734e9 (diff) | |
download | starshatter-104ad1eaba7ada2d5f9b18ced70d06721908f0be.zip starshatter-104ad1eaba7ada2d5f9b18ced70d06721908f0be.tar.gz starshatter-104ad1eaba7ada2d5f9b18ced70d06721908f0be.tar.bz2 |
Removed unused OpcodeLib
Diffstat (limited to 'Opcode/OpcodeLib/Ice/IceSegment.h')
-rw-r--r-- | Opcode/OpcodeLib/Ice/IceSegment.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/Opcode/OpcodeLib/Ice/IceSegment.h b/Opcode/OpcodeLib/Ice/IceSegment.h deleted file mode 100644 index 1ddaa1a..0000000 --- a/Opcode/OpcodeLib/Ice/IceSegment.h +++ /dev/null @@ -1,55 +0,0 @@ -///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-/**
- * Contains code for segments.
- * \file IceSegment.h
- * \author Pierre Terdiman
- * \date April, 4, 2000
- */
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-// Include Guard
-#ifndef __ICESEGMENT_H__
-#define __ICESEGMENT_H__
-
- class ICEMATHS_API IceSegment
- {
- public:
- //! Constructor
- inline_ IceSegment() {}
- //! Constructor
- inline_ IceSegment(const IcePoint& p0, const IcePoint& p1) : mP0(p0), mP1(p1) {}
- //! Copy constructor
- inline_ IceSegment(const IceSegment& seg) : mP0(seg.mP0), mP1(seg.mP1) {}
- //! Destructor
- inline_ ~IceSegment() {}
-
- inline_ const IcePoint& GetOrigin() const { return mP0; }
- inline_ IcePoint ComputeDirection() const { return mP1 - mP0; }
- inline_ void ComputeDirection(IcePoint& dir) const { dir = mP1 - mP0; }
- inline_ float ComputeLength() const { return mP1.Distance(mP0); }
- inline_ float ComputeSquareLength() const { return mP1.SquareDistance(mP0); }
-
- inline_ void SetOriginDirection(const IcePoint& origin, const IcePoint& direction)
- {
- mP0 = mP1 = origin;
- mP1 += direction;
- }
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /**
- * Computes a point on the segment
- * \param pt [out] point on segment
- * \param t [in] point's parameter [t=0 => pt = mP0, t=1 => pt = mP1]
- */
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- inline_ void ComputePoint(IcePoint& pt, float t) const { pt = mP0 + t * (mP1 - mP0); }
-
- float SquareDistance(const IcePoint& point, float* t=null) const;
- inline_ float Distance(const IcePoint& point, float* t=null) const { return sqrtf(SquareDistance(point, t)); }
-
- IcePoint mP0; //!< Start of segment
- IcePoint mP1; //!< End of segment
- };
-
-#endif // __ICESEGMENT_H__
|