Ir al código fuente de este archivo.
|
static void | Point2fAdd (Point2fT *NewObj, const Tuple2fT *t1) |
|
static void | Point2fSub (Point2fT *NewObj, const Tuple2fT *t1) |
|
static void | Vector3fCross (Vector3fT *NewObj, const Vector3fT *v1, const Vector3fT *v2) |
|
static GLfloat | Vector3fDot (const Vector3fT *NewObj, const Vector3fT *v1) |
|
static GLfloat | Vector3fLengthSquared (const Vector3fT *NewObj) |
|
static GLfloat | Vector3fLength (const Vector3fT *NewObj) |
|
static void | Matrix3fSetZero (Matrix3fT *NewObj) |
|
static void | Matrix3fSetIdentity (Matrix3fT *NewObj) |
|
static void | Matrix3fSetRotationFromQuat4f (Matrix3fT *NewObj, const Quat4fT *q1) |
|
static void | Matrix3fMulMatrix3f (Matrix3fT *NewObj, const Matrix3fT *m1) |
|
static void | Matrix4fSetRotationScaleFromMatrix4f (Matrix4fT *NewObj, const Matrix4fT *m1) |
|
static GLfloat | Matrix4fSVD (const Matrix4fT *NewObj, Matrix3fT *rot3, Matrix4fT *rot4) |
|
static void | Matrix4fSetRotationScaleFromMatrix3f (Matrix4fT *NewObj, const Matrix3fT *m1) |
|
static void | Matrix4fMulRotationScale (Matrix4fT *NewObj, GLfloat scale) |
|
static void | Matrix4fSetRotationFromMatrix3f (Matrix4fT *NewObj, const Matrix3fT *m1) |
|
◆ Epsilon
◆ FuncSqrt
◆ Point2fT
◆ Quat4fT
◆ Vector2fT
◆ Vector3fT
◆ ArcBallT
Objeto para la rotación esférica de la vista 3d.
Al arrastrar el mouse alrededor del objeto, simula una esfera que es rotada con el objeto dentro.
◆ Matrix3fT
◆ Matrix4fT
◆ Tuple2fT
KempoApi: The Turloc Toolkit * * ** ** Filename: ArcBall.h ** Version: Common ** Arcball class for mouse manipulation. (C) 1999-2003 Tatewake.com History: 08/17/2003 -(TJG) - Creation 09/23/2003 -(TJG) - Bug fix and optimization 09/25/2003 -(TJG) - Version for NeHe Basecode users
◆ Tuple3fT
◆ Tuple4fT
◆ Matrix3fMulMatrix3f()
Sets the value of this matrix to the result of multiplying itself with matrix m1.
- Parámetros
-
Definición en la línea 269 del archivo moArcBall.h.
◆ Matrix3fSetIdentity()
static void Matrix3fSetIdentity |
( |
Matrix3fT * |
NewObj | ) |
|
|
inlinestatic |
Sets this Matrix3 to identity.
Definición en la línea 223 del archivo moArcBall.h.
◆ Matrix3fSetRotationFromQuat4f()
static void Matrix3fSetRotationFromQuat4f |
( |
Matrix3fT * |
NewObj, |
|
|
const Quat4fT * |
q1 |
|
) |
| |
|
inlinestatic |
Sets the value of this matrix to the matrix conversion of the quaternion argument.
- Parámetros
-
q1 | the quaternion to be converted |
Definición en la línea 240 del archivo moArcBall.h.
◆ Matrix3fSetZero()
static void Matrix3fSetZero |
( |
Matrix3fT * |
NewObj | ) |
|
|
inlinestatic |
◆ Matrix4fMulRotationScale()
static void Matrix4fMulRotationScale |
( |
Matrix4fT * |
NewObj, |
|
|
GLfloat |
scale |
|
) |
| |
|
inlinestatic |
◆ Matrix4fSetRotationFromMatrix3f()
Sets the rotational component(upper 3x3) of this matrix to the matrix values in the T precision Matrix3d argument; the other elements of this matrix are unchanged; a singular value decomposition is performed on this object's upper 3x3 matrix to factor out the scale, then this object's upper 3x3 matrix components are replaced by the passed rotation components, and then the scale is reapplied to the rotational components.
- Parámetros
-
Definición en la línea 421 del archivo moArcBall.h.
◆ Matrix4fSetRotationScaleFromMatrix3f()
static void Matrix4fSetRotationScaleFromMatrix3f |
( |
Matrix4fT * |
NewObj, |
|
|
const Matrix3fT * |
m1 |
|
) |
| |
|
inlinestatic |
◆ Matrix4fSetRotationScaleFromMatrix4f()
static void Matrix4fSetRotationScaleFromMatrix4f |
( |
Matrix4fT * |
NewObj, |
|
|
const Matrix4fT * |
m1 |
|
) |
| |
|
inlinestatic |
◆ Matrix4fSVD()
Performs SVD on this matrix and gets scale and rotation. Rotation is placed into rot3, and rot4.
- Parámetros
-
rot3 | the rotation factor(Matrix3d). if null, ignored |
rot4 | the rotation factor(Matrix4) only upper 3x3 elements are changed. if null, ignored |
- Devuelve
- scale factor
Definición en la línea 310 del archivo moArcBall.h.
◆ Point2fAdd()
Sets the value of this tuple to the vector sum of itself and tuple t1.
- Parámetros
-
Definición en la línea 127 del archivo moArcBall.h.
◆ Point2fSub()
Sets the value of this tuple to the vector difference of itself and tuple t1(this = this - t1).
- Parámetros
-
Definición en la línea 140 del archivo moArcBall.h.
◆ Vector3fCross()
Sets this vector to be the vector cross product of vectors v1 and v2.
- Parámetros
-
v1 | the first vector |
v2 | the second vector |
Definición en la línea 154 del archivo moArcBall.h.
◆ Vector3fDot()
Computes the dot product of the this vector and vector v1.
- Parámetros
-
Definición en la línea 176 del archivo moArcBall.h.
◆ Vector3fLength()
static GLfloat Vector3fLength |
( |
const Vector3fT * |
NewObj | ) |
|
|
inlinestatic |
Returns the length of this vector.
- Devuelve
- the length of this vector
Definición en la línea 204 del archivo moArcBall.h.
◆ Vector3fLengthSquared()
static GLfloat Vector3fLengthSquared |
( |
const Vector3fT * |
NewObj | ) |
|
|
inlinestatic |
Returns the squared length of this vector.
- Devuelve
- the squared length of this vector
Definición en la línea 190 del archivo moArcBall.h.