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)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Rotation other)

Parameters

other Rotation

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

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