Table of Contents

Class MRP

Namespace
NominalSystems.Maths
Assembly
NominalSystems.Maths.dll

Stores a Vector as an MRP for computation of angles

public class MRP
Inheritance
MRP

Constructors

MRP()

Default constructor that does nothing

public MRP()

MRP(Vector3)

Default constructor turns a Vector into an MRP

public MRP(Vector3 vec)

Parameters

vec Vector3

The converted vector

Methods

BMat()

Calculates the B Matrix from the Vector

public Matrix3 BMat()

Returns

Matrix3

A B Matrix

ClampAxis(double)

Clamps an Angle to between [0 and 360]

protected double ClampAxis(double angle)

Parameters

angle double

The input angle in degrees

Returns

double

The clamped angle

NormalizeAxis(double)

Clamps an Angle between [-180 and 180]

protected double NormalizeAxis(double angle)

Parameters

angle double

The input angle in degrees

Returns

double

he clamped angle

ToEulerAngles()

Compute the Euler Angles of the Vector

public Vector3 ToEulerAngles()

Returns

Vector3

The Euler Angle Vector [rad]

ToQuaternion()

Converts a MRP to a Quaternion

public Vector4 ToQuaternion()

Returns

Vector4

A Quaternion vector

ToRotationMatrix()

Turns an MRP into a Rotation Matrix

public Matrix3 ToRotationMatrix()

Returns

Matrix3

The Rotation Matrix

ToString()

Outputs the MRP vector as a string

public override string ToString()

Returns

string

The string with the data