User Tools

Site Tools


2d_geometric_shapes

This is an old revision of the document!


2D Geometry in Impulse Physics

Currently, there is support for:

  • Circle (2D)
  • Point (2D, a typedef of Vector2)
  • Line (2D)
  • Rectangle (2D)
  • Oriented Rectangle (2D)

Line

A line consists of a start and end variable, each are Point2D instances. For convienence, the following functions are present:

  • Length()
  • LengthFast(), which returns the distance without performing the final, expensive sqrtf function.

Circle

A 2D circle consists of a radius and a origin (Point2D). It has no other special features in it's own class.

2d_geometric_shapes.1664816542.txt.gz · Last modified: 2022/10/03 17:02 by max