VS:UnionRect

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Procedure UnionRect returns a rectangle based on the boundary enclosing the two specified rectangles.
PROCEDURE UnionRect(
p1X,p1Y  :REAL;
p2X,p2Y  :REAL;
p3X,p3Y  :REAL;
p4X,p4Y  :REAL;
VAR p5X,p5Y  :REAL;
VAR p6X,p6Y  :REAL);
def vs.UnionRect(p1, p2, p3, p4, p5, p6):
    return (p5, p6)

Parameters

p1 REAL Top left coordinate of rectangle 1.
p2 REAL Bottom right coordinate of rectangle 1.
p3 REAL Top left coordinate of rectangle 2.
p4 REAL Bottom right coordinate of rectangle 2.
p5 REAL Top left coordinate of boundary rectangle.
p6 REAL Bottom right coordinate of boundary rectangle.

Example

VectorScript

UnionRect(0,0,3,3,3,3,5,5,x1,y1,x2,y2);

Python


Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox