C# Класс Fractrace.Geometry.VecRotation

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Angle double
X double
Y double
Z double

Открытые методы

Метод Описание
FromEuler ( double heading, double attitude, double bank ) : void

constructor to create vecRotation from euler angles.

Normalize ( ) : void
VecRotation ( ) : System

Default constructor - initializes all fields to default values

VecRotation ( double x, double y, double z, double angle ) : System
combine ( VecRotation r ) : void

calculate total rotation by taking current rotation and then apply rotation r if both angles are quaternions then this is a multiplication

combine ( double heading, double attitude, double bank ) : void

combine a rotation expressed as euler angle with current rotation. first convert both values to quaternoins then combine and convert back to axis angle. Theory about these conversions shown here: http://www.martinb.com/maths/geometry/rotations/conversions/index.htm

getTransform ( Fractrace.Geometry.Vec3 p1 ) : Fractrace.Geometry.Vec3

calculates the effect of this rotation on a point the new point is given by=q * P1 * q' this version does not alter P1 but returns the result. for theory see: http://www.martinb.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm

toEuler ( double &heading, double &attitude, double &bank ) : void

Converts the Rotation in Euler Axis

Защищенные методы

Метод Описание
toAxisAngle ( ) : void

if this rotation is not already coded as axis angle then convert it to axis angle

toQuaternion ( ) : void

if this rotation is not already coded as quaternion then convert it to quaternion

Описание методов

FromEuler() публичный Метод

constructor to create vecRotation from euler angles.
public FromEuler ( double heading, double attitude, double bank ) : void
heading double rotation about z axis
attitude double rotation about y axis
bank double rotation about x axis
Результат void

Normalize() публичный Метод

public Normalize ( ) : void
Результат void

VecRotation() публичный Метод

Default constructor - initializes all fields to default values
public VecRotation ( ) : System
Результат System

VecRotation() публичный Метод

public VecRotation ( double x, double y, double z, double angle ) : System
x double
y double
z double
angle double
Результат System

combine() публичный Метод

calculate total rotation by taking current rotation and then apply rotation r if both angles are quaternions then this is a multiplication
public combine ( VecRotation r ) : void
r VecRotation
Результат void

combine() публичный Метод

combine a rotation expressed as euler angle with current rotation. first convert both values to quaternoins then combine and convert back to axis angle. Theory about these conversions shown here: http://www.martinb.com/maths/geometry/rotations/conversions/index.htm
public combine ( double heading, double attitude, double bank ) : void
heading double angle about x axis
attitude double angle about y axis
bank double angle about z axis
Результат void

getTransform() публичный Метод

calculates the effect of this rotation on a point the new point is given by=q * P1 * q' this version does not alter P1 but returns the result. for theory see: http://www.martinb.com/maths/algebra/realNormedAlgebra/quaternions/transforms/index.htm
public getTransform ( Fractrace.Geometry.Vec3 p1 ) : Fractrace.Geometry.Vec3
p1 Fractrace.Geometry.Vec3
Результат Fractrace.Geometry.Vec3

toAxisAngle() защищенный Метод

if this rotation is not already coded as axis angle then convert it to axis angle
protected toAxisAngle ( ) : void
Результат void

toEuler() публичный Метод

Converts the Rotation in Euler Axis
public toEuler ( double &heading, double &attitude, double &bank ) : void
heading double The heading.
attitude double The attitude.
bank double The bank.
Результат void

toQuaternion() защищенный Метод

if this rotation is not already coded as quaternion then convert it to quaternion
protected toQuaternion ( ) : void
Результат void

Описание свойств

Angle публичное свойство

Winkel in Bogenmaß
public double Angle
Результат double

X публичное свойство

x-Komponente der Drehachse
public double X
Результат double

Y публичное свойство

y-Komponente der Drehachse
public double Y
Результат double

Z публичное свойство

z-Komponente der Drehachse
public double Z
Результат double