KrisLibrary  1.0.0
Public Member Functions | List of all members
Math3D::Ellipsoid3D Struct Reference

A 3D ellipsoidThe ellipsoid is the centered unit sphere [-1,1]^3 set in the scaled local coordinate system. That is, the center is at the origin, and its major axes are {xbasis,ybasis,zbasis} with radii {dims.x,dims.y,dims.z}. More...

#include <Ellipsoid3D.h>

Inheritance diagram for Math3D::Ellipsoid3D:
Math3D::ScaledLocalCoordinates3D Math3D::LocalCoordinates3D

Public Member Functions

bool contains (const Point3D &pt) const
 
bool intersects (const Line3D &l, Real *t1=NULL, Real *t2=NULL) const
 
bool intersects (const Segment3D &s, Real *t1=NULL, Real *t2=NULL) const
 
void getAABB (AABB3D &bb) const
 
- Public Member Functions inherited from Math3D::ScaledLocalCoordinates3D
void getBasisScaled (Matrix4 &) const
 
void getBasisScaledInv (Matrix4 &) const
 
void normalize (const Vector3 &, Vector3 &) const
 
void denormalize (const Vector3 &, Vector3 &) const
 
void toLocalNormalized (const Point3D &, Point3D &) const
 
void toLocalNormalized (const Line3D &, Line3D &) const
 
void toLocalNormalized (const Segment3D &, Segment3D &) const
 
void toLocalNormalized (const Plane3D &, Plane3D &) const
 
void fromLocalNormalized (const Point3D &, Point3D &) const
 
void fromLocalNormalized (const Line3D &, Line3D &) const
 
void fromLocalNormalized (const Segment3D &, Segment3D &) const
 
void fromLocalNormalized (const Plane3D &, Plane3D &) const
 
bool Read (File &f)
 
bool Write (File &f) const
 
- Public Member Functions inherited from Math3D::LocalCoordinates3D
void getBasis (Matrix4 &) const
 
void getBasisInv (Matrix4 &) const
 
void getTransform (RigidTransform &) const
 
void getTransformInv (RigidTransform &) const
 
void toLocal (const Point3D &, Point3D &) const
 
void toLocalReorient (const Vector3 &, Vector3 &) const
 
void fromLocal (const Point3D &, Point3D &) const
 
void fromLocalReorient (const Vector3 &, Vector3 &) const
 
void toLocal (const Line3D &, Line3D &) const
 
void toLocal (const Segment3D &, Segment3D &) const
 
void toLocal (const Plane3D &, Plane3D &) const
 
void fromLocal (const Line3D &, Line3D &) const
 
void fromLocal (const Segment3D &, Segment3D &) const
 
void fromLocal (const Plane3D &, Plane3D &) const
 
bool Read (File &f)
 
bool Write (File &f) const
 

Additional Inherited Members

- Public Attributes inherited from Math3D::ScaledLocalCoordinates3D
Vector3 dims
 
- Public Attributes inherited from Math3D::LocalCoordinates3D
Vector3 origin
 
Vector3 xbasis
 
Vector3 ybasis
 
Vector3 zbasis
 

Detailed Description

A 3D ellipsoid

The ellipsoid is the centered unit sphere [-1,1]^3 set in the scaled local coordinate system. That is, the center is at the origin, and its major axes are {xbasis,ybasis,zbasis} with radii {dims.x,dims.y,dims.z}.


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