]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/surfacepoint.h
Record distance in SurfacePoint
[libs/math.git] / source / geometry / surfacepoint.h
index 3513ac8e41bf82e1a02e3250ccdfaebb57932576..a5bd794f90052bc96fcc307dfdb67b74244707c8 100644 (file)
@@ -6,11 +6,15 @@
 namespace Msp {
 namespace Geometry {
 
+/**
+A point on the surface of a shape.
+*/
 template<typename T, unsigned N>
 struct SurfacePoint
 {
        LinAl::Vector<T, N> position;
        LinAl::Vector<T, N> normal;
+       T distance;
 };
 
 } // namespace Geometry