89 double tmp0 =
fabs(data[0]);
90 double tmp1 =
fabs(data[1]);
94 return tmp0*
sqrt(1+
sqr(tmp1/tmp0));
96 return tmp1*
sqrt(1+
sqr(tmp0/tmp1));
103 double v = this->
Norm();
146 double v = this->
Norm();
197 double ca1,cb1,cc1,sa1,sb1,sc1;
198 ca1 =
cos(yaw); sa1 =
sin(yaw);
199 cb1 =
cos(pitch);sb1 =
sin(pitch);
200 cc1 =
cos(roll);sc1 =
sin(roll);
201 return Rotation(ca1*cb1,ca1*sb1*sc1 - sa1*cc1,ca1*sb1*cc1 + sa1*sc1,
202 sa1*cb1,sa1*sb1*sc1 + ca1*cc1,sa1*sb1*cc1 - ca1*sc1,
203 -sb1,cb1*sc1,cb1*cc1);
221 double sa,ca,sb,cb,sg,cg;
222 sa =
sin(Alfa);ca =
cos(Alfa);
223 sb =
sin(Beta);cb =
cos(Beta);
224 sg =
sin(Gamma);cg =
cos(Gamma);
225 return Rotation( ca*cb*cg-sa*sg, -ca*cb*sg-sa*cg, ca*sb,
226 sa*cb*cg+ca*sg, -sa*cb*sg+ca*cg, sa*sb,
261 ct + vt*rotvec(0)*rotvec(0),
262 -rotvec(2)*
st + vt*rotvec(0)*rotvec(1),
263 rotvec(1)*
st + vt*rotvec(0)*rotvec(2),
264 rotvec(2)*
st + vt*rotvec(1)*rotvec(0),
265 ct + vt*rotvec(1)*rotvec(1),
266 -rotvec(0)*
st + vt*rotvec(1)*rotvec(2),
267 -rotvec(1)*
st + vt*rotvec(2)*rotvec(0),
268 rotvec(0)*
st + vt*rotvec(2)*rotvec(1),
269 ct + vt*rotvec(2)*rotvec(2)
283 ct + vt*rotvec(0)*rotvec(0),
284 -rotvec(2)*
st + vt*rotvec(0)*rotvec(1),
285 rotvec(1)*
st + vt*rotvec(0)*rotvec(2),
286 rotvec(2)*
st + vt*rotvec(1)*rotvec(0),
287 ct + vt*rotvec(1)*rotvec(1),
288 -rotvec(0)*
st + vt*rotvec(1)*rotvec(2),
289 -rotvec(1)*
st + vt*rotvec(2)*rotvec(0),
290 rotvec(0)*
st + vt*rotvec(2)*rotvec(1),
291 ct + vt*rotvec(2)*rotvec(2)
305 double sa = axis.
Norm();
318 }
else if (
data[4] > 0.0) {
381 return (
a.data[0]==
b.data[0] &&
382 a.data[1]==
b.data[1] &&
383 a.data[2]==
b.data[2] &&
384 a.data[3]==
b.data[3] &&
385 a.data[4]==
b.data[4] &&
386 a.data[5]==
b.data[5] &&
387 a.data[6]==
b.data[6] &&
388 a.data[7]==
b.data[7] &&
389 a.data[8]==
b.data[8] );
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble z
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMVert * v
SIMD_FORCE_INLINE btScalar norm() const
Return the norm (length) of the vector.
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
represents a frame transformation in 3D space (rotation + translation)
Rotation M
Orientation of the Frame.
void Make4x4(double *d)
Reads data from an double array.
static Frame DH_Craig1989(double a, double alpha, double d, double theta)
Vector p
origine of the Frame
static Frame DH(double a, double alpha, double d, double theta)
represents rotations in 3 dimensional space.
void GetRPY(double &roll, double &pitch, double &yaw) const
double GetRotAngle(Vector &axis, double eps=epsilon) const
static Rotation Rot2(const Vector &rotvec, double angle)
Along an arbitrary axes. rotvec should be normalized.
void GetEulerZYZ(double &alfa, double &beta, double &gamma) const
static Rotation Rot(const Vector &rotaxis, double angle)
static Rotation EulerZYZ(double Alfa, double Beta, double Gamma)
static Rotation RPY(double roll, double pitch, double yaw)
double Normalize(double eps=epsilon)
Vector2()
Does not initialise to Zero().
A concrete implementation of a 3 dimensional vector class.
double Normalize(double eps=epsilon)
Vector()
Does not initialise the Vector to zero. use Vector::Zero() or SetToZero for that.
ccl_device_inline float2 fabs(const float2 &a)
bool operator==(const Rotation &a, const Rotation &b)
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
const double PI
the value of pi
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
Rotation operator*(const Rotation &lhs, const Rotation &rhs)
INLINE Rall1d< T, V, S > acos(const Rall1d< T, V, S > &x)
double epsilon
default precision while comparing with Equal(..,..) functions. Initialized at 0.0000001.
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)
IMETHOD bool Equal(const VectorAcc &, const VectorAcc &, double=epsilon)
INLINE Rall1d< T, V, S > atan2(const Rall1d< T, V, S > &y, const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > sqr(const Rall1d< T, V, S > &arg)
static const pxr::TfToken st("st", pxr::TfToken::Immortal)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
ccl_device_inline float beta(float x, float y)