KrisLibrary  1.0.0
Public Member Functions | List of all members
Math3D::Ray3D Struct Reference
Inheritance diagram for Math3D::Ray3D:
Math3D::Line3D

Public Member Functions

Real closestPoint (const Point3D &in, Point3D &out) const
 
Real distance (const Point3D &pt) const
 
bool intersects (const Line3D &, Real *t=NULL, Real *u=NULL, Real epsilon=0) const
 
bool intersects (const Ray3D &, Real *t=NULL, Real *u=NULL, Real epsilon=0) const
 
bool intersects (const AABB3D &, Real &tmin, Real &tmax) const
 
void closestPoint (const Line3D &, Real &t, Real &u) const
 
void closestPoint (const Ray3D &, Real &t, Real &u) const
 
Real distance (const AABB3D &bb) const
 
Real distance (const AABB3D &bb, Real &tclosest, Vector3 &bbclosest) const
 
- Public Member Functions inherited from Math3D::Line3D
void setPoints (const Point3D &a, const Point3D &b)
 
void setSegment (const Segment3D &s)
 
void setTransformed (const Line3D &, const Matrix4 &xform)
 
Real closestPointParameter (const Point3D &in) const
 
Real closestPoint (const Point3D &in, Point3D &out) const
 returns the parameter value of the point
 
Real closestPoint (const Point3D &in, Point3D &out, Real tmin, Real tmax) const
 
Real distance (const Point3D &pt) const
 
void eval (Real t, Point3D &out) const
 
bool intersects (const Line3D &, Real *t=NULL, Real *u=NULL, Real epsilon=0) const
 t is the parameter of this line, u is the other line
 
void closestPoint (const Line3D &, Real &t, Real &u) const
 same comment as above
 
void getAABB (AABB3D &, Real tmin=-Inf, Real tmax=Inf) const
 
bool lineIntersects (const AABB3D &) const
 
bool rayIntersects (const AABB3D &) const
 
bool intersects (const AABB3D &, Real &tmin, Real &tmax) const
 given bounds [tmin,tmax] of the line, returns the clipping min/max
 
Real distance (const AABB3D &bb) const
 
Real distance (const AABB3D &bb, Real &tclosest, Vector3 &bbclosest) const
 
bool Read (File &f)
 
bool Write (File &f) const
 

Additional Inherited Members

- Public Attributes inherited from Math3D::Line3D
Point3D source
 
Vector3 direction
 

The documentation for this struct was generated from the following files: