RotationType
Name
RotationType
Type
Read/Write
When to use it
You can set the value of this property before calling Start method.
You may get the value of this property anytime.
Prototype
property RotationType: long;
Explanations
Specify how the rotation of parts is made.
0 - means custom rotation.
The origin of rotation is set by the parameters RotationCenterX and RotationCenterY of the SetPart method.
1 - center of the mass is used as the origin point for rotation.
The parameters RotationCenterX and RotationCenterY of the SetPart method are ignored.
Center of mass (or centroid) is computed using the formula given in section Centroid of a polygon.
2 - geometric center is used as the origin point for rotation.
Geometric center is computed as (max + min) / 2
The parameters RotationCenterX and RotationCenterY of the SetPart method are ignored.
Default value
1
Remarks
If the part is a circle, the RotationType is ignored and no rotation is performed.
See also: