This is an old revision of the document!
Currently, there is support for:
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.
A 2D circle consists of a radius
and a origin
(Point2D).
It has no other special features in it's own class.
A 2D rectangle consists of an origin
, (Point2D) and a size
(Vector2).
A helper constructor is also given, named InitializeWithMinAndMax
which takes 2 Point2D variables and will initialize the Rectangle for you.
Additionally, this class also has the following helper functions:
GetMin()
GetMax()