Phyzix
Loading...
Searching...
No Matches
CircleBoundary.h
1//
2// Created by shams on 8/8/24.
3//
4
5#ifndef PHYZIX_CIRCLEBOUNDARY_H
6#define PHYZIX_CIRCLEBOUNDARY_H
7
8
9
10#include "Boundary.h"
11
13public:
14 float x;
15 float y;
16 float r;
17
18 RuntimeBaseType getBaseType() const override {
19 return RuntimeBaseType::CIRCLE_BOUNDARY;
20 }
21
22 CircleBoundary(float x, float y, float r): x(x), y(y), r(r) {}
24
26};
27
28
29#endif //PHYZIX_CIRCLEBOUNDARY_H
An abstract class to represent a boundary.
Definition Boundary.h:45
Definition CircleBoundary.h:12
BoundaryIntersectionResult intersects(Boundary *o) override
A pure virtual function to check if the boundary intersects with another boundary.
Definition CircleBoundary.cpp:10
Enum class to identify the base type of a class for runtime type identification.
A struct to hold the result of a possible intersection between two boundaries.
Definition Boundary.h:30