TMoveObjectSpecification

The TMoveObjectSpecification data structure is used to specify how to move the objects in a call to C_MoveObjects.

typedef struct {

int Size;

int MoveSpecifiedBy;

TVector Displacement;

double PolarDisplacementDirection;

double PolarDisplacementDistance;

TMoveObjectPoint NewPositionReferencePoint;

TVector NewPosition;

double RotationAngle;

TVector2 RotationCentre;

} TMoveObjectSpecification;

Members

Size

Specifies the size, in bytes, of this data structure. Set this member to sizeof(TMoveObjectSpecification) before calling a function with a TMoveObjectSpecification parameter.

MoveSpecifiedBy

Specifies the type of move to perform. Can be sbDisplacement, sbPolarDisplacement, sbNewPosition or sbRotation.

Displacement

Only used when MoveSpecifiedBy is sbDisplacement.

A vector, with respect to global axes, that specifies the displacement applied to each specified point.

PolarDisplacementDirection, PolarDisplacementDistance

Only used when MoveSpecifiedBy is sbPolarDisplacement.

The azimuth direction measured in degrees, relative to global axes, and the distance, of the polar displacement applied to each specified point.

NewPositionReferencePoint, NewPosition

Only used when MoveSpecifiedBy is sbNewPosition.

Each specified point will be offset to arrange that the point specified by NewPositionReferencePoint is moved to NewPosition. The point specified by NewPositionReferencePoint must be in the list of points passed to C_MoveObjects.

RotationAngle, RotationCentre

Only used when MoveSpecifiedBy is sbRotation.

Each specified point will be rotated in the horizontal plane about RotationCentre, by an angle of RotationAngle, measured in degrees.

See also

TMoveObjectPoint, C_MoveObjects.