10 return x * x + y * y < powRad;
Defines the Circle class for representing circular shapes in 2D space.
Circle(Vector2D center, float radius)
Constructs a Circle object with a specified center and radius.
float radius
Radius of the circle.
bool IsInShape(Vector2D point) override
Checks if a given point lies within the circle's boundaries.
Abstract base class for 2D geometric shapes.
Vector2D center
The center point of the shape.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.
float X
The X-component of the 2D vector.
float Y
The Y-component of the 2D vector.