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

#include <d2Shape.h>

Inheritance diagram for d2CircleShape:
d2Shape

Public Member Functions

 d2CircleShape (const real radius)
 
virtual ~d2CircleShape ()
 
d2ShapeType GetType () const override
 
d2ShapeClone () const override
 
void UpdateVertices (const d2Transform &transform) override
 
real GetMomentOfInertia () const override
 
- Public Member Functions inherited from d2Shape
virtual ~d2Shape ()=default
 

Public Attributes

real radius
 

Constructor & Destructor Documentation

◆ d2CircleShape()

d2CircleShape::d2CircleShape ( const real radius)

◆ ~d2CircleShape()

virtual d2CircleShape::~d2CircleShape ( )
virtual

Member Function Documentation

◆ Clone()

d2Shape * d2CircleShape::Clone ( ) const
overridevirtual

Implements d2Shape.

◆ GetMomentOfInertia()

real d2CircleShape::GetMomentOfInertia ( ) const
overridevirtual

Implements d2Shape.

◆ GetType()

d2ShapeType d2CircleShape::GetType ( ) const
overridevirtual

Implements d2Shape.

◆ UpdateVertices()

void d2CircleShape::UpdateVertices ( const d2Transform & transform)
inlineoverridevirtual

Implements d2Shape.

Member Data Documentation

◆ radius

real d2CircleShape::radius

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