resonance 1.0.1
Loading...
Searching...
No Matches
raytest.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4struct Segment;
5}
6class Sphere;
7
8namespace Rnd {
9
18 float mVertex[4];
19 float mEdge1[4];
20 float mEdge2[4];
21 float mNormal[4];
22};
23
34int TestRayAgainstSphere(const Segment &ray, const Sphere &sphere, float *pflDistance);
35
51 const TriangleTest &tri,
52 int nCull,
53 float *pflDistance);
54
55} // namespace Rnd
Bounding sphere.
Definition sphere.h:15
The rendering engine.
Definition animhelper.h:3
int TestRayAgainstSphere(const Segment &ray, const Sphere &sphere, float *pflDistance)
Test a ray against a bounding sphere.
int TestRayAgainstTriangle(const Segment &ray, const TriangleTest &tri, int nCull, float *pflDistance)
Test a ray against one triangle.
Line segment a collision query is run along.
Definition collideable.h:22
Triangle prepared for one ray test.
Definition raytest.h:17
float mEdge1[4]
Definition raytest.h:19
float mEdge2[4]
Definition raytest.h:20
float mVertex[4]
Definition raytest.h:18
float mNormal[4]
Definition raytest.h:21