mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
Fix regressions.
This commit is contained in:
parent
3682f7b27c
commit
5ac55f624c
1 changed files with 0 additions and 10 deletions
|
@ -47,7 +47,6 @@ test_projection_on_plane();
|
||||||
test_plane_point_nearest_origin();
|
test_plane_point_nearest_origin();
|
||||||
test_distance_from_plane();
|
test_distance_from_plane();
|
||||||
|
|
||||||
test_closest_point_on_plane();
|
|
||||||
test__general_plane_line_intersection();
|
test__general_plane_line_intersection();
|
||||||
test_plane_line_angle();
|
test_plane_line_angle();
|
||||||
test_normalize_plane();
|
test_normalize_plane();
|
||||||
|
@ -111,15 +110,6 @@ function info_str(list,i=0,string=chr(10)) =
|
||||||
: info_str(list,i+1,str(string,str(list[i][0],_valstr(list[i][1]),chr(10))));
|
: info_str(list,i+1,str(string,str(list[i][0],_valstr(list[i][1]),chr(10))));
|
||||||
|
|
||||||
|
|
||||||
module test_closest_point_on_plane(){
|
|
||||||
plane = rands(-5,5,4,seed=175)+[10,0,0,0];
|
|
||||||
point = rands(-1,1,3,seed=477);
|
|
||||||
point2 = closest_point_on_plane(plane,point);
|
|
||||||
assert_approx(norm(point-point2), abs(distance_from_plane(plane,point)));
|
|
||||||
}
|
|
||||||
*test_closest_point_on_plane();
|
|
||||||
|
|
||||||
|
|
||||||
module test_normalize_plane(){
|
module test_normalize_plane(){
|
||||||
plane = rands(-5,5,4,seed=333)+[10,0,0,0];
|
plane = rands(-5,5,4,seed=333)+[10,0,0,0];
|
||||||
plane2 = normalize_plane(plane);
|
plane2 = normalize_plane(plane);
|
||||||
|
|
Loading…
Reference in a new issue