Class NURBSIndependentPoint

3DS Max Plug-In SDK

Class NURBSIndependentPoint

See Also: Class NURBSPoint.

class NURBSIndependentPoint : public NURBSPoint

Description:

This class is available in release 2.0 and later only.

This class is used to create an independent, free-standing point. There are methods to set the position of the point in various floating point formats and operators to compare points.

All methods of this class are implemented by the system.

Methods:

Prototype:

NURBSIndependentPoint();

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNPoint;

 mX = mY = mZ = 0.0;

Prototype:

virtual ~NURBSIndependentPoint();

Remarks:

Destructor.

Prototype:

void SetPosition(TimeValue t, Point3 pt);

Remarks:

Sets the position of the point at the specified time (as a Point3).

Parameters:

TimeValue t

Specifies the time to set the position.

Point3 pt

The position to set.

Prototype:

void SetPosition(TimeValue t, float x, float y, float z);

Remarks:

Sets the position of the point at the specified time (as floats).

Parameters:

TimeValue t

Specifies the time to set the position.

float x

The X position to set.

float y

The Y position to set.

float z

The Z position to set.

Prototype:

void SetPosition(TimeValue t, double x, double y, double z);

Remarks:

Sets the position of the point at the specified time (as doubles).

Parameters:

TimeValue t

Specifies the time to set the position.

double x

The X position to set.

double y

The Y position to set.

double z

The Z position to set.

Operators:

Prototype:

BOOL operator==(const NURBSIndependentPoint& pt);

Remarks:

Equality operator. Compares if the X, Y and Z coordinates are equal.

Parameters:

const NURBSIndependentPoint& pt

The point to compare.

Return Value:

TRUE if equal; otherwise FALSE.

Prototype:

BOOL operator!=(const NURBSIndependentPoint& pt);

Remarks:

Inequality operator. Compares if the X, Y and Z coordinates are not equal.

Parameters:

const NURBSIndependentPoint& pt

The point to compare.

Return Value:

TRUE if any of the coordinates are not equal; otherwise FALSE.

Prototype:

NURBSIndependentPoint & operator=(const NURBSIndependentPoint& pt);

Remarks:

Assignment operator.

Parameters:

const NURBSIndependentPoint& pt

The point to assign.