Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 938 Bytes

File metadata and controls

48 lines (40 loc) · 938 Bytes

EqualRect

Description

Function EqualRect returns whether the two specified rectangular areas are equal.

FUNCTION EqualRect(
				rectAp1X,rectAp1Y : REAL;
				rectAp2X,rectAp2Y : REAL;
				rectBp1X,rectBp1Y : REAL;
				rectBp2X,rectBp2Y : REAL): BOOLEAN;
def vs.EqualRect(rectAp1, rectAp2, rectBp1, rectBp2):
    return BOOLEAN

Parameters

Name Type Description
rectAp1 REAL Top left coordinate of rectangle A.
rectAp2 REAL Bottom right coordinate of rectangle A.
rectBp1 REAL Top left coordinate of rectangle B.
rectBp2 REAL Bottom right coordinate of rectangle B.

Examples

==== VectorScript ====

PROCEDURE Example;
BEGIN
Message(EqualRect(0,0,3,3,3,3,0,0));
END;
RUN(Example);

==== Python ====

def Example():
	vs.Message(vs.EqualRect(0,0,3,3,3,3,0,0))
Example()

Version

Availability: from All Versions

Category

  • Graphic Calculation