RotationF

References
public struct RotationF
A set of 3D rotation angles.

Constructors

RotationF

#
Create a new set of rotation angles.
public RotationF(
horizontal,
vertical
)

RotationF

#
Create a rotation from a set of mouse points.
public RotationF(
PointF
from,
PointF
to
)

Properties

Empty

#
Gets an empty rotation, which represents the topdown view.
public static RotationF Empty { get; }

Horizontal

#
Gets the horizontal rotation factor.
public float Horizontal { get; }

IsEmpty

#
Gets whether this rotation is empty.
public bool IsEmpty { get; }

IsValid

#
Gets whether this rotation is valid.
public bool IsValid { get; }

Standard

#
Gets a standard rotation with a decent 3d projection.
public static RotationF Standard { get; }

Unset

#
Gets an unset rotation.
public static RotationF Unset { get; }

Vertical

#
Gets the vertical rotation factor.
public float Vertical { get; }

Methods

ToTransform

#
Create a Rhino transformation matrix based on this rotation.
public Transform ToTransform()

ToTransform

#
Create a Rhino transformation matrix based on this rotation.
public Transform ToTransform(
angleMap,
Angle mapping function.
perspective = 0
Perspective strength.

0.0 = no perspective.

0.15 = subtle perspective.

0.3 = weak perspective.

0.6 = medium perspective.

1.0 = full perspective.

)

ToTransform

#
Create a Rhino transformation matrix based on this rotation and a dilation/translation into a target frame.
public Transform ToTransform(
angleMap,
Angle mapping function.
RectangleF
frame,
Frame for object display.
diagonal,
Length of object boundingbox diagonal.
perspective = 0
Perspective strength.

0.0 = no perspective.

0.15 = subtle perspective.

0.3 = weak perspective.

0.6 = medium perspective.

1.0 = full perspective.

)

ToTransform

#
Create a Rhino transformation matrix based on this rotation.
public Transform ToTransform(
minimumAngle,
Lowest allowed angle in degrees (0=straight down, 90=horizontal, 180=straight up).
maximumAngle,
Highest allowed angle in degrees (0=straight down, 90=horizontal, 180=straight up).
perspective = 0
Perspective strength.

0.0 = no perspective.

0.15 = subtle perspective.

0.3 = weak perspective.

0.6 = medium perspective.

1.0 = full perspective.

)

ToTransform

#
Create a Rhino transformation matrix based on this rotation and a dilation/translation into a target frame.
public Transform ToTransform(
minimumAngle,
Lowest allowed angle in degrees (0=straight down, 90=horizontal, 180=straight up).
maximumAngle,
Highest allowed angle in degrees (0=straight down, 90=horizontal, 180=straight up).
RectangleF
frame,
Frame for object display.
diagonal,
Length of object boundingbox diagonal.
perspective = 0
Perspective strength.

0.0 = no perspective.

0.15 = subtle perspective.

0.3 = weak perspective.

0.6 = medium perspective.

1.0 = full perspective.

)

Operators

OperationResultDescription
RotationF+RotationFRotationFAdd two rotations together.