VS:EqualPt: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (add see also) |
||
Line 61: | Line 61: | ||
</code> | </code> | ||
</sample> | </sample> | ||
----------------------------------------------------------------------------------------------------------- | |||
<seeAlso> | |||
VS Functions: | |||
* [[VS:EqPt]] | |||
* [[VS:EqPt2D]] | |||
* [[VS:EqPt3D]] | |||
</seeAlso> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
Latest revision as of 08:15, 21 January 2022
.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
See Also
VS Functions:
VS Functions:
- [[VS:EqPt]]
- [[VS:EqPt2D]]
- [[VS:EqPt3D]]