10 #ifndef G3D_LINESEGMENT_H
11 #define G3D_LINESEGMENT_H
55 return _point + direction * 0.5f;
float length() const
Definition: LineSegment.h:58
double distance(const Point3 &p) const
Definition: LineSegment.h:70
float distance(const Point2 &p) const
Definition: LineSegment.cpp:154
Point3 _point
Definition: LineSegment.h:24
Vector2 m_direction
Definition: LineSegment.h:92
static LineSegment fromTwoPoints(const Point3 &point1, const Point3 &point2)
Definition: LineSegment.h:47
Point2 m_origin
Definition: LineSegment.h:89
Definition: LineSegment.h:21
Point3 closestPoint(const Point3 &point) const
Definition: LineSegment.cpp:18
LineSegment(const Point3 &__point, const Vector3 &_direction)
Definition: LineSegment.h:29
Point2 point(int i) const
Definition: LineSegment.cpp:115
void deserialize(class BinaryInput &b)
Definition: LineSegment.cpp:93
float length() const
Definition: LineSegment.cpp:160
Definition: LineSegment.h:86
virtual ~LineSegment()
Definition: LineSegment.h:42
Point3 randomPoint() const
Definition: LineSegment.cpp:99
Point3 midpoint() const
Definition: LineSegment.h:54
LineSegment()
Definition: LineSegment.h:34
static LineSegment2D fromTwoPoints(const Point2 &p0, const Vector2 &p1)
Definition: LineSegment.cpp:106
float magnitude() const
Definition: Vector3.h:746
double distanceSquared(const Point3 &p) const
Definition: LineSegment.h:74
LineSegment2D()
Definition: LineSegment.h:99
void serialize(class BinaryOutput &b) const
Definition: LineSegment.cpp:87
Vector3 direction
Definition: LineSegment.h:27
Point3 point(int i) const
Definition: LineSegment.cpp:62
float m_length
Definition: LineSegment.h:95
static unorm16 zero()
Definition: unorm16.h:82
Definition: BinaryOutput.h:52
Point2 closestPoint(const Point2 &Q) const
Definition: LineSegment.cpp:125
bool intersectsSolidSphere(const class Sphere &s) const
Definition: LineSegment.cpp:77
Point2 intersection(const LineSegment2D &other) const
Definition: LineSegment.cpp:165
uint8 const Q[]
Definition: AuthenticationPackets.cpp:237