Skip to content

Latest commit

 

History

History
59 lines (51 loc) · 1.01 KB

File metadata and controls

59 lines (51 loc) · 1.01 KB

EqualPt

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

Name Type Description
p1 REAL Coordinates of first comparison point.
p2 REAL Coordinates of second comparison point.

Examples

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()

See Also

VS Functions:

Version

Availability: from All Versions

Category