This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
2d_geometric_shapes [2022/10/03 17:02] max |
2d_geometric_shapes [2022/10/03 17:08] (current) max [Oriented Rectangle] |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Currently, there is support for: | Currently, there is support for: | ||
| - | * Circle | + | * Circle |
| - | * Point (2D, a typedef of [[2D Vector]]) | + | * Point (a typedef of [[2D Vector]]) |
| - | * Line (2D) | + | * Line |
| - | * Rectangle | + | * Rectangle |
| - | * Oriented Rectangle | + | * Oriented Rectangle |
| ===== Line ===== | ===== Line ===== | ||
| - | A line consists of a start and end variable, each are Point2D instances. | + | A line consists of a '' |
| For convienence, | For convienence, | ||
| * '' | * '' | ||
| Line 16: | Line 16: | ||
| ===== Circle ===== | ===== Circle ===== | ||
| - | A 2D circle consists of a radius and a origin (Point2D). | + | A 2D circle consists of a '' |
| It has no other special features in it's own class. | It has no other special features in it's own class. | ||
| + | |||
| + | ===== Rectangle ===== | ||
| + | A 2D rectangle consists of an '' | ||
| + | |||
| + | A helper constructor is also given, named '' | ||
| + | |||
| + | Additionally, | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | |||
| + | ===== Oriented Rectangle ===== | ||
| + | Unlike the regular 2D Rectangle, an oriented Rectangle can be, as the name suggests, rotated. | ||
| + | |||
| + | As such, it is constructed with it's '' | ||
| + | |||
| + | If you wish, you are also capable of immediately constructing it with rotation, by giving the same variables as above, but with an additional '' | ||