From 3a8af6f1536d56fcd50a5f0a0cf264aa62a37599 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 14 Jun 2009 19:58:03 +0000 Subject: New dmnsn_line_index() function. --- libdimension/dimension/geometry.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdimension/dimension') 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 */ -- cgit v1.2.3