#include <Plane.hpp>
Inheritance diagram for OSCAR::Plane:

Public Methods | |
| Plane (const Vector3 &bs, const Vector3 &pt1, const Vector3 &pt2, double th=0.0) | |
| Plane (const Plane &arg) | |
| Plane () | |
| virtual Plane * | Clone () const |
| bool | SetProperties (const Vector3 &bs, const Vector3 &pt1, const Vector3 &pt2, double th=0.0) |
| const Vector3 & | GetR () const |
| const Vector3 & | GetS () const |
| const Vector3 & | GetN () const |
| bool | Bounded () const |
| Plane & | operator= (const Plane &rhs) |
Private Methods | |
| virtual bool | updateInternalParameters () |
| virtual bool | createSolid () |
Private Attributes | |
| Vector3 | r |
| Vector3 | n |
| Vector3 | s |
| bool | bounded |
|
||||||||||||||||||||
|
Constructor Constructs a plane from the planes base point, two of its corner points (all points w.r.t. the local frame) and the planes radius. Automatically populates the global using an identity transformation matrix.
|
|
|
|
|
|
Constructor Used to create arrays of Plane objects Note: SetProperties(...) must be called before any other function.
|
|
|
Determine if the planar object is a halfspace or quadrilateral. Planes are now always quadrilaterals, so this function should always return true.
|
|
|
Clone this object.
Implements OSCAR::SkeletalPrimitive. |
|
|
Reimplemented from OSCAR::Primitive. |
|
|
Returns a unit vector normal to the plane N is a unit normal obtained by crossing (pt1-base) with (pt2-base) and normalizing.
|
|
|
Returns a unit vector in the plane, parallel to (pt1 - base) R is a unit vector point from base to point1.
|
|
|
Returns a unit vector in the plane, perpendicular to (pt1 - base) S is a unit normal that is orthogonal to both N and R, obtained by crossing N and R.
|
|
|
|
|
||||||||||||||||||||
|
Update location (w.r.t. the local frame) and thickness of the plane. Update() is automatically called with the last Xform Update() was called with (identity if Update() has not been called).
|
|
|
Reimplemented from OSCAR::SkeletalPrimitive. |
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |