Public Member Functions | Protected Attributes

Plane3CoordSystem Class Reference

List of all members.

Public Member Functions

 Plane3CoordSystem (const Coord3 &normal, const Coord3 &origin, const Coord3 &pt10)
virtual ~Plane3CoordSystem ()
bool isOK () const
const Plane3plane () const
Coord transform (const Coord3 &, bool project) const
Coord3 transform (const Coord &) const

Protected Attributes

const Plane3 plane_
const Coord3 origin_
Coord3 vec10_
Coord3 vec01_
bool isok_

Detailed Description

Defines a 2D coordinate system on a 3D plane, and transforms between the 3D space and the coordiante system.


Constructor & Destructor Documentation

Plane3CoordSystem::Plane3CoordSystem ( const Coord3 normal,
const Coord3 origin,
const Coord3 pt10 
)
Parameters:
normal The normal of the plane
origin A point on the plane
pt10 A point on the plane, not identical to origin.
virtual Plane3CoordSystem::~Plane3CoordSystem (  )  [inline, virtual]

Member Function Documentation

bool Plane3CoordSystem::isOK (  )  const
Returns:
false if two identical points were given in the constructor.
const Plane3& Plane3CoordSystem::plane (  )  const [inline]
Coord Plane3CoordSystem::transform ( const Coord3 ,
bool  project 
) const
Parameters:
project should be true if the coord is not located on the plane. If true, the point will be projected onto the plane.
Coord3 Plane3CoordSystem::transform ( const Coord  )  const

Member Data Documentation

bool Plane3CoordSystem::isok_ [protected]
const Plane3 Plane3CoordSystem::plane_ [protected]