Table of Contents

Struct Rotation

Namespace
OmegaEngine.Foundation.Geometry
Assembly
OmegaEngine.Foundation.dll

Rotation around three axes, in degrees.

[TypeConverter(typeof(RotationConverter))]
public struct Rotation : IEquatable<Rotation>
Implements
Inherited Members

Constructors

Rotation(float, float, float)

Rotation around three axes, in degrees.

public Rotation(float yaw = 0, float pitch = 0, float roll = 0)

Parameters

yaw float

Rotation around the Y axis, in degrees.

pitch float

Rotation around the X axis, in degrees.

roll float

Rotation around the Z axis, in degrees.

Properties

Pitch

Rotation around the X axis, in degrees.

public float Pitch { readonly get; set; }

Property Value

float

Roll

Rotation around the Z axis, in degrees.

public float Roll { readonly get; set; }

Property Value

float

Yaw

Rotation around the Y axis, in degrees.

public float Yaw { readonly get; set; }

Property Value

float

Methods

Equals(Rotation)

public bool Equals(Rotation other)

Parameters

other Rotation

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

Operators

operator ==(Rotation, Rotation)

public static bool operator ==(Rotation left, Rotation right)

Parameters

left Rotation
right Rotation

Returns

bool

implicit operator Matrix(Rotation)

Convert Rotation into SlimDX.Matrix

public static implicit operator Matrix(Rotation rotation)

Parameters

rotation Rotation

Returns

Matrix

implicit operator Quaternion(Rotation)

Convert Rotation into SlimDX.Quaternion

public static implicit operator Quaternion(Rotation rotation)

Parameters

rotation Rotation

Returns

Quaternion

operator !=(Rotation, Rotation)

public static bool operator !=(Rotation left, Rotation right)

Parameters

left Rotation
right Rotation

Returns

bool