VS:EqualPt

From Vectorworks Developer
Jump to: navigation, search

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

Description

Function EqualPt returns whether the two specified coordinate locations are equal (i.e., the same point, to 12 significant digits).
FUNCTION EqualPt(
p1X,p1Y  :REAL;
p2X,p2Y  :REAL) : BOOLEAN;
def vs.EqualPt(p1, p2):
    return BOOLEAN

Parameters

p1 REAL Coordinates of first comparison point.
p2 REAL Coordinates of second comparison point.

Example

VectorScript

PROCEDURE Example;
VAR
x1, y1, x2, y2 :REAL;
BEGIN
x1 := 1;
y1 := 1;
x2 := 1.0000000000001;
y2 := 1.0000000000001;
Message(EqualPt(x1, y1, x2, y2));
END;
RUN(Example);

Python

def Example():
	x1 = 1
	y1 = 1
	x2 = 1.0000000000001
	y2 = 1.0000000000001
	vs.Message(vs.EqualPt(x1, y1, x2, y2))
Example()

Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox