System.Types.TRectF.Intersect
Delphi
class function Intersect(const R1: TRectF; const R2: TRectF): TRectF; overload; static;
procedure Intersect(const R: TRectF); overload;
C++
inline TRectF TRectF::Intersect(const TRectF &r1, const TRectF &r2) {
inline void TRectF::Intersect(const TRectF &r) {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas SystemTypes.h |
System.Types | TRectF |
Description
Calculates the intersection between two rectangles.
Intersect calculates the intersection between two rectangles and returns a TRectF object, which is the area the two rectangles have in common.