Bullet Collision Detection & Physics Library: GrahamVector3 Struct Reference

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
GrahamVector3 Struct Reference

`#include <btGrahamScan2dConvexHull.h>`

Inheritance diagram for GrahamVector3:
[legend]
Collaboration diagram for GrahamVector3:
[legend]

## Public Member Functions
| GrahamVector3 (const btVector3 &org, int orgIndex)
Public Member Functions inherited from btVector3
| BT_DECLARE_ALIGNED_ALLOCATOR ()
| btVector3 ()
| No initialization constructor.
| btVector3 (const btScalar &_x, const btScalar &_y, const btScalar &_z)
| Constructor from scalars.
btVector3 & | operator+= (const btVector3 &v)
| Add a vector to this one.
btVector3 & | operator-= (const btVector3 &v)
| Subtract a vector from this one.
btVector3 & | operator*= (const btScalar &s)
| Scale the vector.
btVector3 & | operator/= (const btScalar &s)
| Inversely scale the vector.
btScalar | dot (const btVector3 &v) const
| Return the dot product.
btScalar | length2 () const
| Return the length of the vector squared.
btScalar | length () const
| Return the length of the vector.
btScalar | norm () const
| Return the norm (length) of the vector.
btScalar | safeNorm () const
| Return the norm (length) of the vector.
btScalar | distance2 (const btVector3 &v) const
| Return the distance squared between the ends of this and another vector This is symantically treating the vector like a point.
btScalar | distance (const btVector3 &v) const
| Return the distance between the ends of this and another vector This is symantically treating the vector like a point.
btVector3 & | safeNormalize ()
btVector3 & | normalize ()
| Normalize this vector x^2 + y^2 + z^2 = 1.
btVector3 | normalized () const
| Return a normalized version of this vector.
btVector3 | rotate (const btVector3 &wAxis, const btScalar angle) const
| Return a rotated version of this vector.
btScalar | angle (const btVector3 &v) const
| Return the angle between this and another vector.
btVector3 | absolute () const
| Return a vector with the absolute values of each element.
btVector3 | cross (const btVector3 &v) const
| Return the cross product between this and another vector.
btScalar | triple (const btVector3 &v1, const btVector3 &v2) const
int | minAxis () const
| Return the axis with the smallest value Note return values are 0,1,2 for x, y, or z.
int | maxAxis () const
| Return the axis with the largest value Note return values are 0,1,2 for x, y, or z.
int | furthestAxis () const
int | closestAxis () const
void | setInterpolate3 (const btVector3 &v0, const btVector3 &v1, btScalar rt)
btVector3 | lerp (const btVector3 &v, const btScalar &t) const
| Return the linear interpolation between this and another vector.
btVector3 & | operator*= (const btVector3 &v)
| Elementwise multiply this vector by the other.
const btScalar & | getX () const
| Return the x value.
const btScalar & | getY () const
| Return the y value.
const btScalar & | getZ () const
| Return the z value.
void | setX (btScalar _x)
| Set the x value.
void | setY (btScalar _y)
| Set the y value.
void | setZ (btScalar _z)
| Set the z value.
void | setW (btScalar _w)
| Set the w value.
const btScalar & | x () const
| Return the x value.
const btScalar & | y () const
| Return the y value.
const btScalar & | z () const
| Return the z value.
const btScalar & | w () const
| Return the w value.
| operator btScalar * ()
| operator btScalar*() replaces operator[], using implicit conversion. We added operator != and operator == to avoid pointer comparisons.
| operator const btScalar * () const
bool | operator== (const btVector3 &other) const
bool | operator!= (const btVector3 &other) const
void | setMax (const btVector3 &other)
| Set each element to the max of the current values and the values of another btVector3.
void | setMin (const btVector3 &other)
| Set each element to the min of the current values and the values of another btVector3.
void | setValue (const btScalar &_x, const btScalar &_y, const btScalar &_z)
void | getSkewSymmetricMatrix (btVector3 *v0, btVector3 *v1, btVector3 *v2) const
void | setZero ()
bool | isZero () const
bool | fuzzyZero () const
void | serialize (struct btVector3Data &dataOut) const
void | deSerialize (const struct btVector3DoubleData &dataIn)
void | deSerialize (const struct btVector3FloatData &dataIn)
void | serializeFloat (struct btVector3FloatData &dataOut) const
void | deSerializeFloat (const struct btVector3FloatData &dataIn)
void | serializeDouble (struct btVector3DoubleData &dataOut) const
void | deSerializeDouble (const struct btVector3DoubleData &dataIn)
long | maxDot (const btVector3 *array, long array_count, btScalar &dotOut) const
| returns index of maximum dot product between this and vectors in array[]
long | minDot (const btVector3 *array, long array_count, btScalar &dotOut) const
| returns index of minimum dot product between this and vectors in array[]
btVector3 | dot3 (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2) const

## Public Attributes
btScalar | m_angle
int | m_orgIndex
Public Attributes inherited from btVector3
btScalar | m_floats [4]

## Detailed Description

Definition at line 22 of file btGrahamScan2dConvexHull.h.

## Constructor & Destructor Documentation

## ◆ GrahamVector3()

GrahamVector3::GrahamVector3 | ( | const btVector3 & | org,
|  | int | orgIndex
| ) |  |
| inline

Definition at line 24 of file btGrahamScan2dConvexHull.h.

## Member Data Documentation

## ◆ m_angle

btScalar GrahamVector3::m_angle

Definition at line 29 of file btGrahamScan2dConvexHull.h.

## ◆ m_orgIndex

int GrahamVector3::m_orgIndex

Definition at line 30 of file btGrahamScan2dConvexHull.h.

The documentation for this struct was generated from the following file:

- btGrahamScan2dConvexHull.h