C# 클래스 Fractrace.Geometry.VecRotation

파일 보기 프로젝트 열기: trafassel/Gestaltlupe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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