]>
Dogcows Code - chaz/yoink/blob - src/Moof/Shape.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_SHAPE_HH_
13 #define _MOOF_SHAPE_HH_
15 #include <Moof/Drawable.hh>
16 #include <Moof/Math.hh>
17 #include <Moof/OpenGL.hh>
18 #include <Moof/Ray.hh>
22 // Plane (can construct from Triangle3)
29 // | Sphere2, Circle Sphere<2>
30 // | Sphere3 Sphere<3>
32 // | Aabb2, Rectangle Aabb<2>
35 // | Triangle2 Polygon<2,3>
36 // | Triangle3 Polygon<3,3>
50 * Checks if this shape is intersected by a given ray. If so, returns
51 * the distance from the start of the ray to the shape and information
52 * about the contact via the 2nd parameter. A negative value is
53 * returned if there is no contact.
55 virtual bool intersectRay(const Ray
<D
>& ray
,
56 typename Ray
<D
>::Contact
& hit
)
65 #endif // _MOOF_SHAPE_HH_
This page took 0.033566 seconds and 4 git commands to generate.