3ds Max C++ API Reference
|
class DPoint3 Description: This class describes a 3D point using double precision x, y and z coordinates. More...
#include <dpoint3.h>
Public Member Functions | |
DPoint3 ()=default | |
Initializes all vector components to zero. More... | |
constexpr | DPoint3 (const DPoint3 &)=default |
constexpr | DPoint3 (DPoint3 &&)=default |
DPoint3 & | operator= (const DPoint3 &)=default |
DPoint3 & | operator= (DPoint3 &&)=default |
constexpr | DPoint3 (double X, double Y, double Z) |
Constructor. More... | |
constexpr | DPoint3 (const double af[3]) |
Constructor. More... | |
constexpr | DPoint3 (const Point3 &p) |
constexpr DPoint3 & | operator= (const Point3 &p) |
double & | operator[] (int i) |
const for (0,0,1) More... | |
const double & | operator[] (int i) const |
Allows access to x, y and z using the subscript operator. More... | |
constexpr | operator double * () |
Conversion function. More... | |
constexpr | operator const double * () const |
constexpr | operator Point3 () const |
Convert DPoint3 to Point3. More... | |
constexpr DPoint3 | operator- () const |
Unary - operator. More... | |
constexpr DPoint3 | operator+ () const |
Unary +. More... | |
constexpr DPoint3 & | operator-= (const DPoint3 &p) |
Subtracts a DPoint3 from this DPoint3. More... | |
constexpr DPoint3 & | operator+= (const DPoint3 &p) |
Adds a DPoint3 to this DPoint3. More... | |
constexpr DPoint3 & | operator*= (const DPoint3 &p) |
Member-wise multiplication of two vectors. More... | |
DPoint3 & | operator/= (const DPoint3 &p) |
Member-wise, in-place division of this vector. More... | |
constexpr DPoint3 & | operator+= (double f) |
constexpr DPoint3 & | operator-= (double f) |
constexpr DPoint3 & | operator*= (double f) |
Each element of this DPoint3 is multiplied by the specified double. More... | |
DPoint3 & | operator/= (double f) |
Each element of this DPoint3 is divided by the specified double. More... | |
constexpr DPoint3 | operator- (const DPoint3 &p) const |
Subtracts a DPoint3 from a DPoint3. More... | |
constexpr DPoint3 | operator+ (const DPoint3 &p) const |
Adds a DPoint3 to a DPoint3. More... | |
DPoint3 | operator/ (const DPoint3 &p) const |
DPoint3 | operator* (const DPoint3 &p) const |
Member-wise multiplication of two vectors: (x*x, y*y, z*z) More... | |
constexpr double | LengthSquared () const |
The 'Length' squared of this point. More... | |
double | Length () const |
Returns the 'Length' of this point (vector) More... | |
DPoint3 | Normalize () const |
Returns unit vector in the same direction as this point. More... | |
DPoint3 & | Unify () |
in place normalize More... | |
double | LengthUnify () |
int | MaxComponent () const |
int | MinComponent () const |
constexpr bool | operator== (const DPoint3 &p) const |
Equality operator. More... | |
constexpr bool | operator!= (const DPoint3 &p) const |
Equality operator. More... | |
bool | Equals (const DPoint3 &p, double epsilon=1E-6) const |
constexpr double | DotProd (const DPoint3 &p) const |
constexpr double | operator% (const DPoint3 &p) const |
constexpr DPoint3 | CrossProd (const DPoint3 &p) const |
Computes the cross product of this DPoint3 and the specified DPoint3. More... | |
constexpr DPoint3 | operator^ (const DPoint3 &p) const |
Public Attributes | |
double | x = 0.0 |
double | y = 0.0 |
double | z = 0.0 |
Static Public Attributes | |
static const DPoint3 | Origin |
static const DPoint3 | XAxis |
const for (0,0,0) More... | |
static const DPoint3 | YAxis |
const for (1,0,0) More... | |
static const DPoint3 | ZAxis |
const for (0,1,0) More... | |
class DPoint3 Description: This class describes a 3D point using double precision 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: double x,y,z;
|
default |
Initializes all vector components to zero.
|
inlineconstexpr |
Constructor.
x, y, and z are initialized to the values specified.
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Unary - operator.
Negates both x, y and z.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inline |
Returns the 'Length' of this point (vector)
DPoint3 Normalize | ( | ) | const |
Returns unit vector in the same direction as this point.
DPoint3& Unify | ( | ) |
in place normalize
double LengthUnify | ( | ) |
int MaxComponent | ( | ) | const |
int MinComponent | ( | ) | const |
|
inlineconstexpr |
|
inlineconstexpr |
bool Equals | ( | const DPoint3 & | p, |
double | epsilon = 1E-6 |
||
) | const |
|
inlineconstexpr |
|
inlineconstexpr |
double x = 0.0 |
double y = 0.0 |
double z = 0.0 |
|
static |
|
static |
const for (0,0,0)
|
static |
const for (1,0,0)
|
static |
const for (0,1,0)