3BEGIN_MOOTOOLS_NAMESPACE
75 return static_cast<unsigned int>(
sizeof(
TYPE)*3);
116 return (
double(x)*
vect.dir.x +
double(y)*
vect.dir.y +
double(z)*
vect.dir.z +
double(
vect.t));
131 return (x*
xx + y*
yy + z*
zz);
261 return C3DTPoint(x/weight, y/weight, z/weight);
266 x = (
TYPE)(x/weight);
267 y = (
TYPE)(y/weight);
268 z = (
TYPE)(z/weight);
275 x = (
TYPE)(x * weight);
276 y = (
TYPE)(y * weight);
277 z = (
TYPE)(z * weight);
284 if (x !=
src.x || y !=
src.y || z !=
src.z)
292 if (x !=
src.x || y !=
src.y || z !=
src.z)
313 vector.InitFromPoints(
pt1,
pt3);
351END_MOOTOOLS_NAMESPACE
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
void SetValues(const TYPE *values3t)
Set point from 3 TYPE.
Definition 3DPoint.inl:88
bool IsAnormal() const
either infinite or nan. Zero and denormalized value are allowed.
Definition 3DPoint.inl:177
void SubstractTo(const C3DTPoint &pt)
return this = pt-this, instead this = this-pt. This can be used for fast computation (using the stand...
Definition 3DPoint.inl:153
bool IsInfinite() const
Check if one of the coordinate has inf value.
Definition 3DPoint.inl:186
void Offset(TYPE value)
Add value to x, y, z.
Definition 3DPoint.inl:169
bool IsNan(bool resetToZero=false)
Check if one of the coordinate has nan value. resetToZero nan = true, reset coordinates to zero if an...
Definition 3DPoint.inl:194