On this page:
point?
point
point-x
point-y
7.3

13 Points

 (require rebellion/point) package: rebellion

A point is a location in two-dimensional Euclidean geometry, represented by a pair of numbers.

procedure

(point? v)  boolean?

  v : any/c
A predicate for points.

procedure

(point x y)  point?

  x : real?
  y : real?
Constructs a point.

procedure

(point-x pt)  real?

  pt : point?

procedure

(point-y pt)  real?

  pt : point?
Accessors for the X and Y components of a point.