User Tools

Site Tools


2d_geometric_shapes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
2d_geometric_shapes [2022/10/03 17:08]
max added oriented rectangle section
2d_geometric_shapes [2022/10/03 17:08] (current)
max [Oriented Rectangle]
Line 31: Line 31:
 ===== Oriented Rectangle ===== ===== Oriented Rectangle =====
 Unlike the regular 2D Rectangle, an oriented Rectangle can be, as the name suggests, rotated.  Unlike the regular 2D Rectangle, an oriented Rectangle can be, as the name suggests, rotated. 
 +
 As such, it is constructed with it's ''position'' (Point2D) and ''halfExtents'' (Vector2). As such, it is constructed with it's ''position'' (Point2D) and ''halfExtents'' (Vector2).
 +
 If you wish, you are also capable of immediately constructing it with rotation, by giving the same variables as above, but with an additional ''rotation'' variable (float). If you wish, you are also capable of immediately constructing it with rotation, by giving the same variables as above, but with an additional ''rotation'' variable (float).
  
2d_geometric_shapes.1664816914.txt.gz ยท Last modified: 2022/10/03 17:08 by max