#include <freecloth/geom/geVector.h>
Public Member Functions | |
| GeVector (Float x, Float y, Float z) | |
| GeVector (const GePoint &p1, const GePoint &p2) | |
| Construct a vector from p2-p1. | |
| GeVector & | operator+= (const GeVector &) |
| GeVector & | operator-= (const GeVector &) |
| GeVector & | operator+= (Float) |
| GeVector & | operator-= (Float) |
| GeVector & | operator *= (Float) |
| GeVector & | operator/= (Float) |
| GeVector | operator- () const |
| GeVector | operator+ (const GeVector &) const |
| GeVector | operator- (const GeVector &) const |
| GeVector | operator+ (Float) const |
| GeVector | operator- (Float) const |
| GeVector | operator * (Float) const |
| GeVector | operator/ (Float) const |
| bool | operator== (const GeVector &) const |
| bool | operator!= (const GeVector &) const |
| Float | operator[] (UInt32) const |
| Float & | operator[] (UInt32) |
| Float | dot (const GeVector &) const |
| Dot product. | |
| GeVector | cross (const GeVector &) const |
| Cross product. | |
| Float | length () const |
| Vector length (L2 norm). | |
| Float | squaredLength () const |
| Float | infinityNorm () const |
| max(|x|,|y|,|z|) | |
| bool | isUnit () const |
| GeVector | getUnit () const |
| Float | getAngle (const GeVector &) const |
Static Public Member Functions | |
| const GeVector & | axis (UInt32 idx) |
| Retrieve vector for x,y,z axis given 0,1,2. | |
Public Attributes | |
| Float | _x |
| Float | _y |
| Float | _z |
Static Public Attributes | |
| const GeVector | ZERO |
| const GeVector | X |
| const GeVector | Y |
| const GeVector | Z |
In keeping with the principles of affine spaces, we distinguish between vectors and points, which represent direction and position, respectively.
Definition at line 41 of file geVector.h.
1.3-rc3