21 #ifndef GF_PHYSICS_GEOMETRY_H
22 #define GF_PHYSICS_GEOMETRY_H
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83 virtual float getArea()
const = 0;
133 const CircF&
get()
const;
135 virtual float getArea()
const override;
180 virtual float getArea()
const override;
185 void computeBoundingCircle();
189 CircF m_boundingCircle;
192 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Type
The type of geometry.
Definition: PhysicsGeometry.h:50
virtual void renderAt(RenderTarget &target, Vector2f position, float angle) const override
Render the geometry.
virtual CircF getBoundingCircle() const =0
Get a bouding circle.
CircleGeometry(CircF circle)
Constructor.
virtual void renderAt(RenderTarget &target, Vector2f position, float angle) const override
Render the geometry.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
A polygon (see gf::PolygonGeometry)
A circle physics geometry.
Definition: PhysicsGeometry.h:110
A polygon physics geometry.
Definition: PhysicsGeometry.h:148
PhysicsGeometry(Type type)
Constructor.
Definition: PhysicsGeometry.h:60
virtual float getArea() const =0
Compute the area of the geometry.
PolygonGeometry(Polygon polygon)
Constructor.
virtual CircF getBoundingCircle() const override
Get a bouding circle.
The namespace for gf classes.
Definition: Action.h:34
virtual CircF getBoundingCircle() const override
Get a bouding circle.
virtual float getArea() const override
Compute the area of the geometry.
virtual ~PhysicsGeometry()
Destructor.
PolygonGeometry(Vector2f size)
Constructor.
virtual void renderAt(RenderTarget &target, Vector2f position, float angle) const =0
Render the geometry.
A convex polygon.
Definition: Polygon.h:52
PolygonGeometry(RectF rectangle)
Constructor.
const CircF & get() const
Get the circle.
A circle (see gf::CircleGeometry)
CircleGeometry(float radius)
Constructor.
The geometry of a physics body.
Definition: PhysicsGeometry.h:45
#define GF_API
Definition: Portability.h:35
virtual float getArea() const override
Compute the area of the geometry.
const Polygon & get() const
Get the polygon.
Type getType() const
Get the type of the geometry.
Definition: PhysicsGeometry.h:74