29 #include "dgQuaternion.h" 36 DG_MSC_VECTOR_ALIGMENT
40 dgVector(dgFloat32(1.0f), dgFloat32(0.0f), dgFloat32(0.0f),
42 dgVector(dgFloat32(0.0f), dgFloat32(1.0f), dgFloat32(0.0f),
44 dgVector(dgFloat32(0.0f), dgFloat32(0.0f), dgFloat32(1.0f),
46 dgVector(dgFloat32(0.0f), dgFloat32(0.0f), dgFloat32(0.0f),
56 dgSphere &operator= (
const dgMatrix &arg);
57 void Scale(dgFloat32 Ws, dgFloat32 Hs, dgFloat32 Bs) ;
58 void SetDimensions(dgFloat32 W, dgFloat32 H, dgFloat32 B);
59 void SetDimensions(
const dgFloat32 vertex[], dgInt32 strideInBytes, dgInt32 vertexCount,
const dgMatrix *basis = NULL);
60 void SetDimensions(
const dgFloat32 vertex[], dgInt32 strideInBytes,
const dgInt32 trangles[], dgInt32 indexCount,
const dgMatrix *basis);
89 } DG_GCC_VECTOR_ALIGMENT;
96 m_front = arg.m_front;
98 m_right = arg.m_right;
99 m_posit = arg.m_posit;
103 inline void dgSphere::SetDimensions(dgFloat32 W, dgFloat32 H, dgFloat32 B) {
104 m_size =
dgVector(dgAbsf(W), dgAbsf(H), dgAbsf(B), dgSqrt(W * W + H * H + B * B));
107 inline void dgSphere::Scale(dgFloat32 Ws, dgFloat32 Hs, dgFloat32 Bs) {
108 SetDimensions(m_size.m_x * Ws, m_size.m_y * Hs, m_size.m_z * Bs);
Definition: dgVector.h:86
Definition: dgQuaternion.h:31
Definition: dgSphere.h:37
Definition: dgMatrix.h:41