Claudette
 All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Claudette::SphereCollisionTest Class Reference

Collision test with a sphere. More...

#include <sphere_collision_test.h>

Inheritance diagram for Claudette::SphereCollisionTest:
Claudette::BaseCollisionTest

Public Member Functions

 SphereCollisionTest ()
 
const float * sphereCenter () const
 
void setSphereCenter (float x, float y, float z)
 
float sphereRadius () const
 
void setSphereRadius (float radius)
 
- Public Member Functions inherited from Claudette::BaseCollisionTest
 BaseCollisionTest ()
 
 ~BaseCollisionTest ()
 
bool collides () const
 Collision result, returns true if a collision was detected. More...
 
const float * modelTriangle () const
 The triangle that collided (belongs to this model) More...
 
int triangleId () const
 The index of the triangle that collided (belongs to this model) More...
 
const float * point () const
 The detected collision point (array of 3 items containing x,y,z coords) More...
 

Additional Inherited Members

- Protected Member Functions inherited from Claudette::BaseCollisionTest
float * mutablePoint ()
 

Detailed Description

Collision test with a sphere.

Definition at line 9 of file sphere_collision_test.h.

Constructor & Destructor Documentation

Claudette::SphereCollisionTest::SphereCollisionTest ( )

Member Function Documentation

void Claudette::SphereCollisionTest::setSphereCenter ( float  x,
float  y,
float  z 
)
void Claudette::SphereCollisionTest::setSphereRadius ( float  radius)
const float* Claudette::SphereCollisionTest::sphereCenter ( ) const
float Claudette::SphereCollisionTest::sphereRadius ( ) const

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