collidex v0.1.1 Collidex.Geometry.Shape behaviour

This module defines the the behavior common to all shapes used by the collision engine.

Summary

Callbacks

Returns the center (or centroid, if applicable) of the shape as an {x, y} 2-tuple

Callbacks

center()

Specs

center :: tuple

Returns the center (or centroid, if applicable) of the shape as an {x, y} 2-tuple.