Defines the Shape base class for representing geometric shapes in 2D space.
Represents a rectangle in 2D space.
bool IsInShape(Vector2D point) override
Checks if a given point lies within the rectangle's boundaries.
Abstract base class for 2D geometric shapes.
float rotation
The rotation of the shape in degrees.
Vector2D center
The center point of the shape.
Vector2D size
The size of the shape, large enough to fit within a bounding rectangle.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.