Struct Rotation
- Namespace
 - Alis.Core.Aspect.Math
 
- Assembly
 - Alis.dll
 
The rotation
[Serializable]
public struct Rotation : ISerializableImplements
Inherited Members
Constructors
Rotation(float)
Initialize from an angle in radians
public Rotation(float angle)Parameters
anglefloat- 
Angle in radians
 
Rotation(float, float, float)
Initializes a new instance of the Alis.Core.Aspect.Math.Rotation class
public Rotation(float sine, float cosine, float angle)Parameters
Properties
Angle
The angle
public float Angle { readonly get; set; }Property Value
Cosine
public float Cosine { readonly get; set; }Property Value
Sine
public float Sine { readonly get; set; }Property Value
Methods
GetAngle()
Get the angle in radians
public float GetAngle()Returns
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data using the specified info
public void GetObjectData(SerializationInfo info, StreamingContext context)Parameters
infoSerializationInfo- 
The info
 contextStreamingContext- 
The context
 
GetXAxis()
Get the x-axis
public Vector2 GetXAxis()Returns
GetYAxis()
Get the y-axis
public Vector2 GetYAxis()Returns
Set(float)
Set using an angle in radians.
public void Set(float angle)Parameters
anglefloat
SetIdentity()
Set to the identity rotation
public void SetIdentity()