Polygon
kn::Polygon Declared in kraken/geometry/Polygon.hpp
At a glance
17 membersReference
C++ APIpoints
variablestd::vector< Vec2 > pointsNo description in the source header.
Polygon()=defaultNo description in the source header.
~Polygon
function~Polygon()=defaultNo description in the source header.
copy
functionPolygon copy() constNo description in the source header.
getPerimeter
functiondouble getPerimeter() constNo description in the source header.
getArea
functiondouble getArea() constNo description in the source header.
getCentroid
functionVec2 getCentroid() constNo description in the source header.
setCentroid
functionvoid setCentroid(const Vec2 ¢roid)No description in the source header.
getRect
functionclass Rect getRect() constNo description in the source header.
isConvex
functionbool isConvex() constNo description in the source header.
isConcave
functionbool isConcave() constNo description in the source header.
rotate
functionvoid rotate(double angle)No description in the source header.
rotated
functionPolygon rotated(double angle) constNo description in the source header.
move
functionvoid move(const Vec2 &offset)No description in the source header.
moved
functionNo description in the source header.
void scaleBy(double factor)void scaleBy(const Vec2 &factor)No description in the source header.
No description in the source header.