]>
Dogcows Code - chaz/yoink/blob - src/Moof/Shape.hh
c97296004b7a80aa73d5ff3594ed4ae658b38c40
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 Triangle<3>)
27 // | Circle <- Ball<2>
28 // | Sphere <- Ball<3>
30 // | Rectangle <- Box<2>
33 // | Triangle <- Polygon<3>
49 * Checks if this shape is intersected by a given ray. If so, returns
50 * the distance from the start of the ray to the shape and information
51 * about the intersection via the 2nd parameter. A negative value is
52 * returned if there is no intersection.
54 virtual bool intersectRay(const Ray
<D
>& ray
,
55 typename Ray
<D
>::Intersection
& hit
)
64 #endif // _MOOF_SHAPE_HH_
This page took 0.033285 seconds and 4 git commands to generate.