CODTransform::Rotate

Rotates the transform.

Defined in: OdTransform.cpp

Syntax

void CODTransform::Rotate(int nAngle);

void CODTransform::Rotate(int nAngle, float fOriginX, float fOriginY, SIZE sizeAspectRatio = odg_sizeDefaultAspectRatio);

Return Value

void

Parameters

nAngle

The angle to rotate, in tenths of a degree.

fOriginX

The horizontal coordinate of the origin.

fOriginY

The vertical coordinate of the origin.

Comments

If you want to spin a component in place, pass in the center of the component as the origin.

sizeAspectRatio

The aspect ratio of the viewport the components are being rotated in.