Skip to content

cDoublePt

Stephen P edited this page Apr 30, 2020 · 4 revisions

Defines a point in 2D space using a double-typed x and y variables.

Members

x

double
The x-position of the point.

y

double
The y-position of the point.

Functions

rotatePoint

cDoublePt rotatePoint(cDoublePt pt, cDoublePt center, double degrees)
Returns a point rotated degrees degrees around a circle with center center. Pretty self-explanatory.

Clone this wiki locally