]> git.tdb.fi Git - libs/math.git/blob - source/geometry/surfacepoint.h
Record distance in SurfacePoint
[libs/math.git] / source / geometry / surfacepoint.h
1 #ifndef MSP_GEOMETRY_SURFACEPOINT_H_
2 #define MSP_GEOMETRY_SURFACEPOINT_H_
3
4 #include <msp/linal/vector.h>
5
6 namespace Msp {
7 namespace Geometry {
8
9 /**
10 A point on the surface of a shape.
11 */
12 template<typename T, unsigned N>
13 struct SurfacePoint
14 {
15         LinAl::Vector<T, N> position;
16         LinAl::Vector<T, N> normal;
17         T distance;
18 };
19
20 } // namespace Geometry
21 } // namespace Msp
22
23 #endif