Public Member Functions | |
Segment3 () | |
Segment3 (const Vector3 &d) | |
Segment3 (const Point3 &s, const Point3 &e) | |
Segment3 (const Segment3 &seg) | |
~Segment3 () | |
Segment3 & | operator= (const Segment3 &seg) |
bool | operator== (const Segment3 &seg) const |
bool | operator!= (const Segment3 &seg) const |
bool | equals (const Segment3 &seg, Real epsilon=consts::epsilon) const |
Point3 & | operator[] (Int i) |
const Point3 & | operator[] (Int i) const |
Segment3 & | operator *= (Real s) |
Segment3 & | operator/= (Real s) |
void | transform (const base::Transform &t) |
Real | length () const |
Real | norm () const |
Real | magnitude () const |
bool | contains (const Point3 &p) const |
is point p on the segment? | |
Real | distanceTo (const Point3 &p) const |
shortest distance between segment and p | |
Real | distanceTo (const Segment3 &s2) const |
shortest distance between this segment and segment g2 | |
Point3 | pointClosestTo (const Point3 &p) const |
find point on segment that is closest to p | |
Segment3 | shortestSegmentBetween (const Segment3 &s2) const |
return the shortest segment between this segment and segment s2 | |
Segment3 & | swapEnds () |
swap s & e | |
Public Attributes | |
Point3 | s |
Point3 | e |
Protected Member Functions | |
Segment3 | shortestSegmentBetween (const Segment3 &s2, Real &ds) const |
Friends | |
class | Triangle3 |
|
|
|
Definition at line 44 of file Segment3. References base::Point3. |
|
Definition at line 46 of file Segment3. References base::Point3. |
|
|
|
|
|
is point p on the segment?
|
|
shortest distance between this segment and segment g2
Definition at line 105 of file Segment3. References shortestSegmentBetween(). |
|
shortest distance between segment and p
|
|
Definition at line 72 of file Segment3. References e, base::Vector3::equals(), and s. |
|
Definition at line 91 of file Segment3. Referenced by gfx::Line3::distanceTo(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 80 of file Segment3. References base::Point3. |
|
Definition at line 79 of file Segment3. References base::Point3. |
|
find point on segment that is closest to p
|
|
|
|
return the shortest segment between this segment and segment s2
Definition at line 113 of file Segment3. Referenced by distanceTo(). |
|
swap s & e
Definition at line 117 of file Segment3. References base::Point3. |
|
|
|
|
|
Definition at line 119 of file Segment3. Referenced by equals(), operator!=(), gfx::operator<<(), operator=(), and operator==(). |
|
Definition at line 119 of file Segment3. Referenced by equals(), operator!=(), gfx::operator<<(), operator=(), and operator==(). |