Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Geometry

Provides functions to rasterize lines and ellipses.

since

1.10.2

Index

Functions

ellipseRegion

  • ellipseRegion(rect: rect): region
  • ellipseRegion(x0: number, y0: number, x1: number, y1: number): region
  • Returns an elliptical region based on the given bounding rectangle.

  • Returns an elliptical region based on a bounding rectangle given by x0,y0 (top-left) and x1,y1 (bottom-right), inclusive.

pointsOnEllipse

  • pointsOnEllipse(center: point, radiusX: number, radiusY: number): point[]
  • Returns a lists of points on an ellipse, with center as the midpoint and with the given radii.

    May return duplicate points.

pointsOnLine

  • Returns the lists of points on a line from a to b.

    When the manhattan option (named after "Manhattan distance") is set to true, the points on the line can't take diagonal steps.

Generated using TypeDoc