Defines the Shape base class for representing geometric shapes in 2D space.
Ellipse(Vector2D center, Vector2D size, float rotation)
Constructs an Ellipse object with specified center, size, and rotation.
bool IsInShape(Vector2D point) override
Checks if a given point lies within the ellipse's boundaries.
float rotation
The rotation of the shape in degrees.
Shape(Vector2D center, Vector2D size, float rotation)
Constructs a Shape object with specified center, size, and rotation.
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.