C# Class Fractrace.Geometry.VecRotation

Afficher le fichier Open project: trafassel/Gestaltlupe Class Usage Examples

Méthodes publiques

Свойство Type Description
Angle double
X double
Y double
Z double

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

FromEuler() public méthode

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
Résultat void

Normalize() public méthode

public Normalize ( ) : void
Résultat void

VecRotation() public méthode

Default constructor - initializes all fields to default values
public VecRotation ( ) : System
Résultat System

VecRotation() public méthode

public VecRotation ( double x, double y, double z, double angle ) : System
x double
y double
z double
angle double
Résultat System

combine() public méthode

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
Résultat void

combine() public méthode

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
Résultat void

getTransform() public méthode

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
Résultat Fractrace.Geometry.Vec3

toAxisAngle() protected méthode

if this rotation is not already coded as axis angle then convert it to axis angle
protected toAxisAngle ( ) : void
Résultat void

toEuler() public méthode

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.
Résultat void

toQuaternion() protected méthode

if this rotation is not already coded as quaternion then convert it to quaternion
protected toQuaternion ( ) : void
Résultat void

Property Details

Angle public_oe property

Winkel in Bogenmaß
public double Angle
Résultat double

X public_oe property

x-Komponente der Drehachse
public double X
Résultat double

Y public_oe property

y-Komponente der Drehachse
public double Y
Résultat double

Z public_oe property

z-Komponente der Drehachse
public double Z
Résultat double