This is a three-component vector distance (as opposed to a three-component point, which represents a particular point in space).
More...
Public Member Functions |
| | Vec3 () |
| | Vec3 (VBase3 const copy) |
| | Vec3 (float x, float y, float z) |
| | Vec3 (float fill_value) |
| float | angleDeg (Vec3 const other) |
| | Returns the angle between this vector and the other one, expressed in degrees.
|
| float | angleRad (Vec3 const other) |
| | Returns the unsigned angle between this vector and the other one, expressed in radians.
|
| Vec3 | cross (VBase3 const other) |
| PyObject | getattr (string attr_name) |
| Vec2 | getXy () |
| | Returns a 2-component vector that shares just the first two components of this vector.
|
| Vec2 | getXz () |
| | Returns a 2-component vector that shares just the first and last components of this vector.
|
| Vec2 | getYz () |
| | Returns a 2-component vector that shares just the last two components of this vector.
|
| Vec3 | operator* (float scalar) |
| VBase3 | operator+ (VBase3 const other) |
| Vec3 | operator+ (Vec3 const other) |
| Vec3 | operator- (Vec3 const other) |
| Vec3 | operator- () |
| VBase3 | operator- (VBase3 const other) |
| Vec3 | operator/ (float scalar) |
| Vec3 | operator= (VBase3 const copy) |
| Vec3 | operator= (float fill_value) |
| Vec3 | project (VBase3 const onto) |
| | Returns a new vector representing the projection of this vector onto another one.
|
| | pythonRepr (ostream out, string class_name) |
| float | relativeAngleDeg (Vec3 const other) |
| | This method is deprecated.
|
| float | relativeAngleRad (Vec3 const other) |
| | This method is deprecated.
|
| int | setattr (PyObject self, string attr_name, PyObject assign) |
| float | signedAngleDeg (Vec3 const other, Vec3 const ref) |
| | Returns the signed angle between two vectors.
|
| float | signedAngleRad (Vec3 const other, Vec3 const ref) |
| | returns the signed angle between two vectors.
|
Static Public Member Functions |
| static Vec3 | back (CoordinateSystem cs) |
| | Returns the back vector for the given coordinate system.
|
| static Vec3 | back () |
| | Returns the back vector for the given coordinate system.
|
| static Vec3 | down (CoordinateSystem cs) |
| | Returns the down vector for the given coordinate system.
|
| static Vec3 | down () |
| | Returns the down vector for the given coordinate system.
|
| static Vec3 | forward (CoordinateSystem cs) |
| | Returns the forward vector for the given coordinate system.
|
| static Vec3 | forward () |
| | Returns the forward vector for the given coordinate system.
|
| static TypeHandle | getClassType () |
| static Vec3 | left (CoordinateSystem cs) |
| | Returns the left vector for the given coordinate system.
|
| static Vec3 | left () |
| | Returns the left vector for the given coordinate system.
|
| static Vec3 | rfu (float right, float fwd, float up, CoordinateSystem cs) |
| | Returns a vector that is described by its right, forward, and up components, in whatever way the coordinate system represents that vector.
|
| static Vec3 | rfu (float right, float fwd, float up) |
| | Returns a vector that is described by its right, forward, and up components, in whatever way the coordinate system represents that vector.
|
| static Vec3 | right (CoordinateSystem cs) |
| | Returns the right vector for the given coordinate system.
|
| static Vec3 | right () |
| | Returns the right vector for the given coordinate system.
|
| static Vec3 const | unitX () |
| | Returns a unit X vector.
|
| static Vec3 const | unitY () |
| | Returns a unit Y vector.
|
| static Vec3 const | unitZ () |
| | Returns a unit Z vector.
|
| static Vec3 | up (CoordinateSystem cs) |
| | Returns the up vector for the given coordinate system.
|
| static Vec3 | up () |
| | Returns the up vector for the given coordinate system.
|
| static Vec3 const | zero () |
| | Returns a zero-length vector.
|
This is a three-component vector distance (as opposed to a three-component point, which represents a particular point in space).
Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.