VS:EqualRect
Jump to navigation
Jump to search
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
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
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.
Example
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