TCanvas3D.FourPointsFromRect

TCanvas3D.FourPointsFromRect
TCanvas3D

procedure FourPointsFromRect(Const R: TRect; Z: Integer; Out P: TFourPoints);

Unit
TeCanvas

Description
Returns a TFourPoints structure (array of four TPoint records), containing the 2D xy position of each corner of the "R" rectangle parameter, after calculating each corner position located at the depth "Z" parameter, using current Rotation and Elevation properties.

This function performs the equivalent of calling Calculate3DPosition method for each corner of the R rectangle (LeftTop, LeftBottom, RightTop and RightBottom).