Stellarium  HEAD
Public Member Functions | Data Fields
Plane Class Reference

Public Member Functions

 Plane (Vec3f &v1, Vec3f &v2, Vec3f &v3)
 
 Plane (const Vec4f &e)
 
 Plane (const Vec3f &v1, const Vec3f &v2, const Vec3f &v3, SPolygon::Order o)
 
void setPoints (const Vec3f &v1, const Vec3f &v2, const Vec3f &v3, SPolygon::Order o=SPolygon::CCW)
 
float calcDistance (const Vec3f &p) const
 
bool isBehind (const Vec3f &p) const
 
void saveValues ()
 
void resetValues ()
 
bool intersect (const Line &l, float &val) const
 

Data Fields

Vec3f normal
 
Vec3f sNormal
 
Vec3f p
 
Vec3f sP
 
float distance
 
float sDistance