Show: Delphi C++
Display Preferences

System.Math.Vectors.TQuaternion3D

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TQuaternion3D = record
    constructor Create(const AAxis: TPoint3D; const AAngle: Single); overload;
    constructor Create(const AYaw, APitch, ARoll: Single); overload;
    constructor Create(const AMatrix: TMatrix3D); overload;
    class operator Implicit(const AQuaternion: TQuaternion3D): TMatrix3D;
    class operator Multiply(const AQuaternion1, AQuaternion2: TQuaternion3D): TQuaternion3D;
    function Length: Single;
    function Normalize: TQuaternion3D;
    case Integer of
      0: (V: TVector3DType;);
      1: (ImagPart: TPoint3D;
          RealPart: Single;);
  end;

C++

struct DECLSPEC_DRECORD TQuaternion3D
{
public:
    __fastcall TQuaternion3D(const TPoint3D &AAxis, const float AAngle)/* overload */;
    __fastcall TQuaternion3D(const float AYaw, const float APitch, const float ARoll)/* overload */;
    __fastcall TQuaternion3D(const TMatrix3D &AMatrix)/* overload */;
    __fastcall operator TMatrix3D();
    static TQuaternion3D __fastcall _op_Multiply(const TQuaternion3D &AQuaternion1, const TQuaternion3D &AQuaternion2);
    TQuaternion3D __fastcall operator*(const TQuaternion3D& __rhs) { return TQuaternion3D::_op_Multiply(*this, __rhs); };
    float __fastcall Length();
    TQuaternion3D __fastcall Normalize();
    TQuaternion3D() {}
public:
    union
    {
        struct
        {
            TPoint3D ImagPart;
            float RealPart;
        };
        struct
        {
            TVector3DType V;
        };
    };
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.Math.Vectors.pas
System.Math.Vectors.hpp
System.Math.Vectors System.Math.Vectors

Description

Quaternion number type. Use TQuaternion3D to describe a quaternion.

Personal tools
In Other Languages
Previous Versions
Assistance