mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-12 11:04:12 +02:00
adjust regression test for new best-fit line result
This commit is contained in:
@@ -269,8 +269,8 @@ module test_plane_closest_point(){
|
|||||||
module test_line_from_points() {
|
module test_line_from_points() {
|
||||||
assert_approx(line_from_points([[1,0],[0,0],[-1,0]]),[[-1,0],[1,0]]);
|
assert_approx(line_from_points([[1,0],[0,0],[-1,0]]),[[-1,0],[1,0]]);
|
||||||
assert_approx(line_from_points([[1,1],[0,1],[-1,1]]),[[-1,1],[1,1]]);
|
assert_approx(line_from_points([[1,1],[0,1],[-1,1]]),[[-1,1],[1,1]]);
|
||||||
assert(line_from_points([[1,1],[0,1],[-1,0]])==undef);
|
assert(line_from_points([[1,1],[0,1],[-1,0]],check_collinear=true)==undef);
|
||||||
assert(line_from_points([[1,1],[0,1],[-1,0]],fast=true)== [[-1,0],[1,1]]);
|
assert(line_from_points([[3,3],[0,3],[0,0]],check_collinear=false)==[[-0.5,0.5],[2.5,3.5]]);
|
||||||
}
|
}
|
||||||
*test_line_from_points();
|
*test_line_from_points();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user