pub trait CustomShapePoints {
    fn point_count(&self) -> u32;
    fn point(&self, point: u32) -> Vector2f;
}
Expand description

The points of a custom shape.

Required Methods

Gets the total count of points.

Return the points count

Gets a given point.

Argument
  • point - The index of the point to return

Returns a Vector2f containing the coordinates.

Implementors