CoriEngine
Loading...
Searching...
No Matches
Cori::Physics::Polygon Class Reference

#include <Physics.hpp>

Inheritance diagram for Cori::Physics::Polygon:
Collaboration diagram for Cori::Physics::Polygon:

Public Member Functions

 Polygon ()=default
 Polygon (const b2Polygon &polygon)

Static Public Member Functions

static Polygon CreateBox (const Vec2 halfSize, const Vec2 offset, const Rot rotation=Rot{ 1, 0 }, const float radius=0.0f)
static Polygon CreateBox (const Vec2 halfSize)
static Polygon CreateBox (const Vec2 halfSize, const float radius)
static Polygon CreatePolygon (const ConvexHull &hull, const float radius=0.0f)
static Polygon CreatePolygon (const ConvexHull &hull, const Vec2 offset, const Rot rotation=Rot{ 1, 0 }, const float radius=0.0f)

Detailed Description

Definition at line 223 of file Physics/Physics.hpp.

Constructor & Destructor Documentation

◆ Polygon() [1/2]

Cori::Physics::Polygon::Polygon ( )
default

◆ Polygon() [2/2]

Cori::Physics::Polygon::Polygon ( const b2Polygon & polygon)
inline

Definition at line 227 of file Physics/Physics.hpp.

Member Function Documentation

◆ CreateBox() [1/3]

Polygon Cori::Physics::Polygon::CreateBox ( const Vec2 halfSize)
inlinestaticnodiscard

Definition at line 233 of file Physics/Physics.hpp.

Here is the call graph for this function:

◆ CreateBox() [2/3]

Polygon Cori::Physics::Polygon::CreateBox ( const Vec2 halfSize,
const float radius )
inlinestaticnodiscard

Definition at line 237 of file Physics/Physics.hpp.

Here is the call graph for this function:

◆ CreateBox() [3/3]

Polygon Cori::Physics::Polygon::CreateBox ( const Vec2 halfSize,
const Vec2 offset,
const Rot rotation = Rot{ 1, 0 },
const float radius = 0.0f )
inlinestaticnodiscard

Definition at line 229 of file Physics/Physics.hpp.

Here is the call graph for this function:

◆ CreatePolygon() [1/2]

Polygon Cori::Physics::Polygon::CreatePolygon ( const ConvexHull & hull,
const float radius = 0.0f )
inlinestaticnodiscard

Definition at line 241 of file Physics/Physics.hpp.

Here is the call graph for this function:

◆ CreatePolygon() [2/2]

Polygon Cori::Physics::Polygon::CreatePolygon ( const ConvexHull & hull,
const Vec2 offset,
const Rot rotation = Rot{ 1, 0 },
const float radius = 0.0f )
inlinestaticnodiscard

Definition at line 245 of file Physics/Physics.hpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: