Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
PK::Circle Class Reference

#include <Circle.h>

Inheritance diagram for PK::Circle:
PK::Shape

Public Member Functions

 Circle (float xPos, float yPos, float radius, float rotation, float mass)
 
 Circle (float xPos, float yPos, float radius, float rotation, float mass, float friction)
 
 ~Circle ()
 
void Initialize (float xPos, float yPos, float radius, float rotation, float mass, float friction=0.2f)
 
float GetRadius ()
 
- Public Member Functions inherited from PK::Shape
void SetForce (Vector2f force)
 
ShapeType GetType ()
 

Public Attributes

float Radius
 
- Public Attributes inherited from PK::Shape
Vector2f Position
 
float Rotation
 
float Friction
 
float Mass
 
float InvMass
 
float InertiaTensor
 
float InvInertiaTensor
 
Vector2f Velocity
 
float AngularVelocity
 
Vector2f Force
 

Additional Inherited Members

- Protected Member Functions inherited from PK::Shape
 Shape ()
 
 Shape (float xPos, float yPos, float rotation, float friction, float mas, float intertiaTensor)
 
void ZeroForce ()
 
- Protected Attributes inherited from PK::Shape
ShapeType Type
 

Constructor & Destructor Documentation

Circle::Circle ( float  xPos,
float  yPos,
float  radius,
float  rotation,
float  mass 
)

Create an instance of a Circle object

Position of the circle in the X axis Position of the circle in the Y axis Radius of the circle Rotation of the circle in radians Mass of the circle

Circle::Circle ( float  xPos,
float  yPos,
float  radius,
float  rotation,
float  mass,
float  friction 
)

Create an instance of a Circle object

Position of the circle in the X axis Position of the circle in the Y axis Radius of the circle Rotation of the circle in radians Mass of the circle Coefficient of friction for the circle

Circle::~Circle ( )

Destroy this instance of a circle object

Member Function Documentation

float Circle::GetRadius ( )

Get the width and height of the circle as a Vector2f

void Circle::Initialize ( float  xPos,
float  yPos,
float  radius,
float  rotation,
float  mass,
float  friction = 0.2f 
)

Reinitialize this instance of a Circle object

Position of the circle in the X axis Position of the circle in the Y axis Radius of the circle Rotation of the circle in radians Mass of the circle

Member Data Documentation

float PK::Circle::Radius

Radius of the circle


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