TCanvas3D.RectFromRectZ
TCanvas3D
function RectFromRectZ(Const R: TRect; Z: Integer): TRect;
Unit
TeCanvas
Description
Returns the smallest bounding rectangle containing the four corners of the "R" rectangle after calculating their 3D position.
This function does:
function TCanvas3D.RectFromRectZ(const R: TRect; Z: Integer): TRect;
var P : TFourPoints;
begin
P:=FourPointsFromRect(R,Z);
result:=RectFromPolygon(P,4);
end;
It is mainly used to apply transparency to 3D rotated rectangles.