Class SimpleRotationExtensions
Definition
Namespace: StardewUI.Graphics
Assembly: StardewUI.dll
Helper extensions for the SimpleRotation type.
Inheritance
Object ⇦ SimpleRotationExtensions
Members
Methods
Name | Description |
---|---|
Angle(SimpleRotation) | Gets the angle of a rotation, in radians. |
IsQuarter(SimpleRotation) | Gets whether a rotation is a quarter turn. |
Details
Methods
Angle(SimpleRotation)
Gets the angle of a rotation, in radians.
Parameters
rotation
SimpleRotation
The rotation type.
Returns
The angle of the rotation, in radians.
IsQuarter(SimpleRotation)
Gets whether a rotation is a quarter turn.
Parameters
rotation
SimpleRotation
The rotation type.
Returns
true
if the current instance is one of QuarterClockwise or QuarterCounterclockwise; otherwise false
.
Remarks
Often used to check whether to invert X/Y values in measurements.