diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-14 19:58:03 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-14 19:58:03 +0000 |
commit | 3a8af6f1536d56fcd50a5f0a0cf264aa62a37599 (patch) | |
tree | 3742b029bc1f4849fd668d1a5af033bbfa0b67c8 /libdimension/dimension/geometry.h | |
parent | 5c73e21b426ed381a1ae8d1bcac6fc78e5952b8f (diff) | |
download | dimension-3a8af6f1536d56fcd50a5f0a0cf264aa62a37599.tar.xz |
New dmnsn_line_index() function.
Diffstat (limited to 'libdimension/dimension/geometry.h')
-rw-r--r-- | libdimension/dimension/geometry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h index a2e54ab..4effea8 100644 --- a/libdimension/dimension/geometry.h +++ b/libdimension/dimension/geometry.h @@ -76,5 +76,7 @@ dmnsn_line dmnsn_matrix_line_mul(dmnsn_matrix lhs, dmnsn_line rhs); /* A point on a line, defined by x0 + t*n */ dmnsn_vector dmnsn_line_point(dmnsn_line l, double t); +/* Solve for the t value such that x0 + t*n = x */ +double dmnsn_line_index(dmnsn_line l, dmnsn_vector x); #endif /* DIMENSION_GEOMETRY_H */ |