Class TSFRotation

Unit

Declaration

type TSFRotation = class(TX3DSingleField)

Description

X3D field representing a 3D rotation around an arbitrary axis.

Hierarchy

Overview

Fields

Public Axis: TVector3;
Public RotationRad: Single;

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AnAxis: TVector3; const ARotationRad: Single); overload;
Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: TVector4); overload;
Public procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;
Public function RotatedPoint(const pt: TVector3): TVector3;
Public function Equals(SecondValue: TX3DField): boolean; override;
Public function EqualsDefaultValue: boolean; override;
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
Public procedure AssignLerp(const A: Double; Value1, Value2: TX3DField); override;
Public function CanAssignLerp: boolean; override;
Public procedure Assign(Source: TPersistent); override;
Public procedure AssignValue(Source: TX3DField); override;
Public procedure AssignDefaultValueFromValue; override;
Public class function X3DType: string; override;
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
Public procedure Send(const AValue: TVector4); overload;

Properties

Public property Value: TVector4 read GetValue write SetValue;
Public property ValueDeg: TVector4 read GetValueDeg write SetValueDeg;

Description

Fields

Public Axis: TVector3;
 
Public RotationRad: Single;
 

Methods

Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AnAxis: TVector3; const ARotationRad: Single); overload;
 
Public constructor Create(const AParentNode: TX3DFileItem; const AExposed: boolean; const AName: string; const AValue: TVector4); overload;
 
Public procedure ParseValue(Lexer: TX3DLexer; Reader: TX3DReader); override;
 
Public function RotatedPoint(const pt: TVector3): TVector3;

Rotate point Pt around Self.

Public function Equals(SecondValue: TX3DField): boolean; override;
 
Public function EqualsDefaultValue: boolean; override;
 
Public function FastEqualsValue(SecondValue: TX3DField): boolean; override;
 
Public procedure AssignLerp(const A: Double; Value1, Value2: TX3DField); override;
 
Public function CanAssignLerp: boolean; override;
 
Public procedure Assign(Source: TPersistent); override;
 
Public procedure AssignValue(Source: TX3DField); override;
 
Public procedure AssignDefaultValueFromValue; override;
 
Public class function X3DType: string; override;
 
Public class function CreateEvent(const AParentNode: TX3DFileItem; const AName: string; const AInEvent: boolean): TX3DEvent; override;
 
Public procedure Send(const AValue: TVector4); overload;
 

Properties

Public property Value: TVector4 read GetValue write SetValue;

Current rotation value, with last component expressing rotation in radians.

This internally gets / sets values from Axis, RotationRad, it only presents them to you differently.

Public property ValueDeg: TVector4 read GetValueDeg write SetValueDeg;

Current rotation value, with last component expressing rotation in degrees.

So this is just like Value, but last component is in degrees. This internally gets / sets values from Axis, RotationRad, it only presents them to you differently.


Generated by PasDoc 0.16.0.