Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2Shape Struct Referenceabstract

#include <d2Shape.h>

Inheritance diagram for d2Shape:
d2CircleShape d2PolygonShape d2BoxShape

Public Member Functions

virtual ~d2Shape ()=default
 
virtual d2ShapeType GetType () const =0
 
virtual d2ShapeClone () const =0
 
virtual void UpdateVertices (const d2Transform &transform)=0
 
virtual real GetMomentOfInertia () const =0
 

Constructor & Destructor Documentation

◆ ~d2Shape()

virtual d2Shape::~d2Shape ( )
virtualdefault

Member Function Documentation

◆ Clone()

virtual d2Shape * d2Shape::Clone ( ) const
pure virtual

Implemented in d2BoxShape, d2CircleShape, and d2PolygonShape.

◆ GetMomentOfInertia()

virtual real d2Shape::GetMomentOfInertia ( ) const
pure virtual

Implemented in d2BoxShape, d2CircleShape, and d2PolygonShape.

◆ GetType()

virtual d2ShapeType d2Shape::GetType ( ) const
pure virtual

Implemented in d2BoxShape, d2CircleShape, and d2PolygonShape.

◆ UpdateVertices()

virtual void d2Shape::UpdateVertices ( const d2Transform & transform)
pure virtual

Implemented in d2CircleShape, and d2PolygonShape.


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