dg2d.point

Scalar and integer 2D point types.

Members

Functions

offset
Point offset(Point point, Scalar offset_x, Scalar offset_y)

Returns point offset by offset_x,offset_y

rotate
Point rotate(Point point, Scalar angle, Scalar focus_x, Scalar focus_y)

Returns point rotated by the specified angle around focus_x,focus_y. Angle is in degrees [0..360]

rotate
Point rotate(Point point, Scalar angle)

Returns point rotated by the specified angle. angle is in degrees [0..360]

scale
Point scale(Point point, Scalar scale_x, Scalar scale_y)

Returns point scaled by scale_x,scale_y

scale
Point scale(Point point, Scalar scale_x, Scalar scale_y, Scalar focus_x, Scalar focus_y)

Returns point scaled by scale_x,scale_y but relative to focus_x,focus_y

Structs

IPoint
struct IPoint

Integer 2D point.

Point
struct Point

2D Point.

Meta

License

Boost Software License, Version 1.0

Authors

Chris Jones