FMX.Types3D.TBoundingBox.FitInto

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FitInto(const ADesignatedArea: TBoundingBox; out ARatio: Single): TBoundingBox; overload;
function FitInto(const ADesignatedArea: TBoundingBox): TBoundingBox; overload;

C++

TBoundingBox __fastcall FitInto(const TBoundingBox &ADesignatedArea, /* out */ float &ARatio)/* overload */;
TBoundingBox __fastcall FitInto(const TBoundingBox &ADesignatedArea)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Types3D.pas
FMX.Types3D.hpp
FMX.Types3D TBoundingBox

Description

Returns a new TBoundingBox which is the original one scaled by single value.

The FitInto method returns a new TBoundingBox which is the original one scaled by a single value to fit into the ADesignatedArea. The scale value is internally calculated taking into account the current area and the ADesignatedArea. The ARatio of one of the overloaded methods, returns the scale value used for the scaling operation.

See Also