Static Public Member Functions
TomGine::tgCollission Class Reference

#include <tgCollission.h>

List of all members.

Static Public Member Functions

static vec3 GetNormal (const vec3 &v1, const vec3 &v2, const vec3 &v3)
static bool IntersectModels (const tgModel &m1, const tgModel &m2, const tgPose &p1, const tgPose &p2)
static bool IntersectModels (const tgRenderModel &m1, const tgRenderModel &m2)
static bool IntersectRayModel (std::vector< vec3 > &pl, std::vector< vec3 > &nl, std::vector< double > &zl, const tgRay &ray, const tgModel &model)
static bool IntersectRayTriangle (vec3 &p, vec3 &n, double &z, const tgRay &ray, const vec3 &t1, const vec3 &t2, const vec3 &t3)
static bool PointInTriangle (const vec3 &p, const vec3 &t1, const vec3 &t2, const vec3 &t3)
static bool PointOnSameSide (const vec3 &p1, const vec3 &p2, const vec3 &a, const vec3 &b)

Detailed Description

Definition at line 20 of file tgCollission.h.


Member Function Documentation

vec3 tgCollission::GetNormal ( const vec3 v1,
const vec3 v2,
const vec3 v3 
) [static]

Definition at line 7 of file tgCollission.cpp.

bool tgCollission::IntersectModels ( const tgModel m1,
const tgModel m2,
const tgPose p1,
const tgPose p2 
) [static]

Definition at line 87 of file tgCollission.cpp.

bool tgCollission::IntersectModels ( const tgRenderModel m1,
const tgRenderModel m2 
) [static]

Definition at line 109 of file tgCollission.cpp.

bool tgCollission::IntersectRayModel ( std::vector< vec3 > &  pl,
std::vector< vec3 > &  nl,
std::vector< double > &  zl,
const tgRay ray,
const tgModel model 
) [static]

Definition at line 38 of file tgCollission.cpp.

bool tgCollission::IntersectRayTriangle ( vec3 p,
vec3 n,
double &  z,
const tgRay ray,
const vec3 t1,
const vec3 t2,
const vec3 t3 
) [static]

Definition at line 20 of file tgCollission.cpp.

bool tgCollission::PointInTriangle ( const vec3 p,
const vec3 t1,
const vec3 t2,
const vec3 t3 
) [static]

Definition at line 141 of file tgCollission.cpp.

bool tgCollission::PointOnSameSide ( const vec3 p1,
const vec3 p2,
const vec3 a,
const vec3 b 
) [static]

Definition at line 132 of file tgCollission.cpp.


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


blort
Author(s): Thomas Mörwald , Michael Zillich , Andreas Richtsfeld , Johann Prankl , Markus Vincze , Bence Magyar
autogenerated on Wed Aug 26 2015 15:24:13