|
| Point () |
| Construct an uninitialized point. More...
|
|
| Point (const Point &)=default |
| Construct a copy of a point. More...
|
|
| Point (const AtlasInType &a) |
| Construct a point from an object passed by Atlas. More...
|
|
| Point (const Vector< dim > &vector) |
| Construct a point from a vector. More...
|
|
AtlasOutType | toAtlas () const |
| Create an Atlas object from the point. More...
|
|
void | fromAtlas (const AtlasInType &a) |
| Set the point's value to that given by an Atlas object. More...
|
|
Point & | operator= (const Point &rhs)=default |
|
bool | isEqualTo (const Point &p, CoordType epsilon=numeric_constants< CoordType >::epsilon()) const |
|
bool | operator== (const Point &rhs) const |
|
bool | operator!= (const Point &rhs) const |
|
bool | isValid () const |
|
void | setValid (bool valid=true) |
| make isValid() return true if you've initialized the point by hand More...
|
|
Point & | setToOrigin () |
| Set point to (0,0,...,0) More...
|
|
Point & | rotate (const RotMatrix< dim > &m, const Point &p) |
| Rotate about point p. More...
|
|
size_t | numCorners () const |
|
Point< dim > | getCorner (size_t) const |
|
Point< dim > | getCenter () const |
|
Point | shift (const Vector< dim > &v) |
|
Point | moveCornerTo (const Point &p, size_t) |
|
Point | moveCenterTo (const Point &p) |
|
Point & | rotateCorner (const RotMatrix< dim > &, size_t) |
|
Point & | rotateCenter (const RotMatrix< dim > &) |
|
Point & | rotatePoint (const RotMatrix< dim > &m, const Point &p) |
|
Point & | rotate (const Quaternion &q, const Point &p) |
|
Point & | rotateCorner (const Quaternion &, size_t) |
|
Point & | rotateCenter (const Quaternion &) |
|
Point & | rotatePoint (const Quaternion &q, const Point &p) |
|
AxisBox< dim > | boundingBox () const |
|
Ball< dim > | boundingSphere () const |
|
Ball< dim > | boundingSphereSloppy () const |
|
Point | toParentCoords (const Point &origin, const RotMatrix< dim > &rotation=RotMatrix< dim >().identity()) const |
|
Point | toParentCoords (const AxisBox< dim > &coords) const |
|
Point | toParentCoords (const RotBox< dim > &coords) const |
|
Point | toLocalCoords (const Point &origin, const RotMatrix< dim > &rotation=RotMatrix< dim >().identity()) const |
|
Point | toLocalCoords (const AxisBox< dim > &coords) const |
|
Point | toLocalCoords (const RotBox< dim > &coords) const |
|
Point | toParentCoords (const Point &origin, const Quaternion &rotation) const |
|
Point | toLocalCoords (const Point &origin, const Quaternion &rotation) const |
|
CoordType | operator[] (const int i) const |
| Access the i'th coordinate of the point. More...
|
|
CoordType & | operator[] (const int i) |
| Access the i'th coordinate of the point. More...
|
|
| Point (CoordType x, CoordType y) |
| 2D only: construct a point from its (x, y) coordinates More...
|
|
| Point (CoordType x, CoordType y, CoordType z) |
| 3D only: construct a point from its (x, y, z) coordinates More...
|
|
CoordType | x () const |
| access the first component of a point More...
|
|
CoordType & | x () |
| access the first component of a point More...
|
|
CoordType | y () const |
| access the second component of a point More...
|
|
CoordType & | y () |
| access the second component of a point More...
|
|
CoordType | z () const |
| access the third component of a point More...
|
|
CoordType & | z () |
| access the third component of a point More...
|
|
Point & | polar (CoordType r, CoordType theta) |
| 2D only: construct a vector from polar coordinates More...
|
|
void | asPolar (CoordType &r, CoordType &theta) const |
| 2D only: convert a vector to polar coordinates More...
|
|
Point & | polar (CoordType r, CoordType theta, CoordType z) |
| 3D only: construct a vector from polar coordinates More...
|
|
void | asPolar (CoordType &r, CoordType &theta, CoordType &z) const |
| 3D only: convert a vector to polar coordinates More...
|
|
Point & | spherical (CoordType r, CoordType theta, CoordType phi) |
| 3D only: construct a vector from spherical coordinates More...
|
|
void | asSpherical (CoordType &r, CoordType &theta, CoordType &phi) const |
| 3D only: convert a vector to spherical coordinates More...
|
|
const CoordType * | elements () const |
|
Point< 2 > & | polar (CoordType r, CoordType theta) |
|
void | asPolar (CoordType &r, CoordType &theta) const |
|
Point< 3 > & | polar (CoordType r, CoordType theta, CoordType z) |
|
void | asPolar (CoordType &r, CoordType &theta, CoordType &z) const |
|
Point< 3 > & | spherical (CoordType r, CoordType theta, CoordType phi) |
|
void | asSpherical (CoordType &r, CoordType &theta, CoordType &phi) const |
|
Point< 3 > & | rotate (const Quaternion &q, const Point< 3 > &p) |
|
Point< 3 > & | rotatePoint (const Quaternion &q, const Point< 3 > &p) |
|
Point< 3 > | toLocalCoords (const Point< 3 > &origin, const Quaternion &rotation) const |
|
Point< 3 > | toParentCoords (const Point< 3 > &origin, const Quaternion &rotation) const |
|
CoordType | z () const |
|
CoordType & | z () |
|
| Point (CoordType x, CoordType y) |
|
| Point (CoordType x, CoordType y, CoordType z) |
|
Point< 2 > & | polar (CoordType r, CoordType theta) |
|
void | asPolar (CoordType &r, CoordType &theta) const |
|
Point< 3 > & | polar (CoordType r, CoordType theta, CoordType z) |
|
void | asPolar (CoordType &r, CoordType &theta, CoordType &z) const |
|
Point< 3 > & | spherical (CoordType r, CoordType theta, CoordType phi) |
|
void | asSpherical (CoordType &r, CoordType &theta, CoordType &phi) const |
|
template<int dim = 3>
class WFMath::Point< dim >
A dim dimensional point.
This class implements the full shape interface, as described in the fake class Shape.
Definition at line 50 of file const.h.