Class TCastlePerspective

Unit

Declaration

type TCastlePerspective = class(TComponent)

Description

Subcomponent used in TCastleCamera.Perspective to set perspective projection parameters.

Do not create instances of this class yourself, these are automatically created by TCastleCamera.

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TCastlePerspective

Overview

Fields

Public nested const DefaultFieldOfView = Pi / 4;
Public nested const DefaultFieldOfViewAxis = faSmallest;

Methods

Public constructor Create(AOwner: TComponent); override;

Properties

Published property FieldOfView: Single read FFieldOfView write SetFieldOfView stored IsStoredFieldOfView default DefaultFieldOfView;
Published property FieldOfViewAxis: TFieldOfViewAxis read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis;

Description

Fields

Public nested const DefaultFieldOfView = Pi / 4;
 
Public nested const DefaultFieldOfViewAxis = faSmallest;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 

Properties

Published property FieldOfView: Single read FFieldOfView write SetFieldOfView stored IsStoredFieldOfView default DefaultFieldOfView;

Perspective field of view angle, in radians. The FieldOfViewAxis determines whether this is horizontal or vertical angle.

Published property FieldOfViewAxis: TFieldOfViewAxis read FFieldOfViewAxis write SetFieldOfViewAxis default DefaultFieldOfViewAxis;

Which axis is determined explicitly by FieldOfView.

See also
TFieldOfViewAxis
Value of TCastlePerspective.FieldOfViewAxis.

Generated by PasDoc 0.15.0.