This reference page is linked to from the following overview
topics: Autodesk.Max.dll.
#include <ipoint3.h>
Class Description
- See also:
- Class Point3.
- Description:
- This class describes a 3D point using integer x, y and z
coordinates. Methods are provided to add and subtract points,
multiply and divide by scalars, and element by element multiply and
divide two points. All methods are implemented by the
system.
- Data Members:
- int x,y,z;
Constructor & Destructor Documentation
IPoint3 |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
Z |
|
) |
|
[inline] |
{ x = a.x; y = a.y; z = a.z; }
{ x = ai[0]; y = ai[1]; z = ai[2]; }
Member Function Documentation
int& operator[] |
( |
int |
i |
) |
[inline] |
- Returns:
- An index of 0 will return x, 1 will return y, 2 will return
z.
const int& operator[] |
( |
int |
i |
) |
const [inline] |
- Returns:
- An index of 0 will return x, 1 will return y, 2 will return
z.
operator int * |
( |
|
) |
[inline] |
IPoint3 operator- |
( |
|
) |
const [inline] |
IPoint3 operator+ |
( |
|
) |
const [inline] |
{
x -= a.x; y -= a.y; z -= a.z;
return *this;
}
{
x += a.x; y += a.y; z += a.z;
return *this;
}
int operator* |
( |
const IPoint3 & |
b |
) |
const [inline] |
{
return(x*b.x+y*b.y+z*b.z);
}
int DotProd |
( |
const IPoint3 & |
b |
) |
const [inline] |
{
return(x*b.x+y*b.y+z*b.z);
}
int operator== |
( |
const IPoint3 & |
p |
) |
const [inline] |
- Returns:
- Nonzero if the IPoint3's are equal; otherwise 0.
{ return (x == p.x && y == p.y && z == p.z); }
int operator!= |
( |
const IPoint3 & |
p |
) |
const [inline] |
{ return ( (x != p.x) || (y != p.y) || (z != p.z) ); }
Member Data Documentation