Table of Contents

Struct Rotation

Namespace
Alis.Core.Aspect.Math
Assembly
Alis.dll

The rotation

[Serializable]
public struct Rotation : ISerializable

Implements

Inherited Members

Constructors

Rotation(float)

Initialize from an angle in radians

public Rotation(float angle)

Parameters

angle float

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

sine float

The sine

cosine float

The cosine

angle float

The angle

Properties

Angle

The angle

public float Angle { readonly get; set; }

Property Value

float

Cosine

public float Cosine { readonly get; set; }

Property Value

float

Sine

public float Sine { readonly get; set; }

Property Value

float

Methods

GetAngle()

Get the angle in radians

public float GetAngle()

Returns

float

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data using the specified info

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The info

context StreamingContext

The context

GetXAxis()

Get the x-axis

public Vector2 GetXAxis()

Returns

Vector2

GetYAxis()

Get the y-axis

public Vector2 GetYAxis()

Returns

Vector2

Set(float)

Set using an angle in radians.

public void Set(float angle)

Parameters

angle float

SetIdentity()

Set to the identity rotation

public void SetIdentity()