Geometry 187
is_element
Tests if a point is on a geometric object. Returns 1 if it is and
0 otherwise
is_element(point, object)
Example:
is_element(point , circle(0,1)) returns 1.
is_equilateral
Takes three points and tests whether or not they are vertices of
a single equilateral triangle. Returns 1 if they are and 0
otherwise.
is_equilateral(point1, point2, point3)
Example:
is_equilateral(point(0,0), point(4,0),
point(2,4)) returns 0.
is_isoceles
Takes three points and tests whether or not they are vertices of
a single isosceles triangle. Returns 0 if they are not. If they are,
returns the number order of the common point of the two sides
of equal length (1, 2, or 3). Returns 4 if the three points form
an equilateral triangle.
is_isosceles(point1, point2, point3)
Example:
is_isoscelesl(point(0,0), point(4,0),
point(2,4)) returns 3.
is_orthogonal
Tests whether or not two lines or two circles are orthogonal
(perpendicular). In the case of two circles, tests whether or not
the tangent lines at a point of intersection are orthogonal.
Returns 1 if they are and 0 otherwise.
is_orthogonal(line1, line2) or
is_orthogonal(circle1, circle2)
Example:
is_orthogonal(line(y=x),line(y=-x)) returns 1.
2
2
----
2
2
----(,)