ShapeDrawer.draw - multiple declarations

Function ShapeDrawer.draw

Draws a point to the screen Just calls the basic draw point method

void draw (
  int x,
  int y
);

Function ShapeDrawer.draw

Draws a point to the screen

void draw (
  int x,
  int y,
  Color color
);

Function ShapeDrawer.draw

Draws a point given by a vector

void draw (
  Vector!(int,2) point
);

void draw (
  Vector!(int,2) point,
  Color color
);

Function ShapeDrawer.draw

Draws a line given by two points

void draw (
  Vector!(int,2) first,
  Vector!(int,2) second
);

void draw (
  Vector!(int,2) first,
  Vector!(int,2) second,
  Color color
);

Function ShapeDrawer.draw

Draws a line given by a segment

void draw (
  Segment!(int,2) line
);

void draw (
  Segment!(int,2) line,
  Color color
);

Function ShapeDrawer.draw

Draws the given rectangle

void draw (
  AxisAlignedBoundingBox!(int,2) rect
);

void draw (
  AxisAlignedBoundingBox!(int,2) rect,
  Color color
);

Function ShapeDrawer.draw

Draws the given bezier curve with numPoints number of points on the curve More points is smoother but slower

void draw(uint numPoints = 100) (
  BezierCurve!(int,2) curve
);

void draw(uint numPoints = 100) (
  BezierCurve!(int,2) curve,
  Color color
);

Function ShapeDrawer.draw

Draws a polygon

void draw(uint sides) (
  iPolygon!sides toDraw
);

void draw(uint sides) (
  iPolygon!sides toDraw,
  Color color
);

Function ShapeDrawer.draw

Draws the ellipse bounded by the given box between the given angles in radians More points generally means a slower but more well drawn ellipse

void draw(uint numPoints = 100) (
  iRectangle bounds,
  double startAngle,
  double endAngle
);

void draw(uint numPoints = 100) (
  iRectangle bounds,
  double startAngle,
  double endAngle,
  Color color
);