30-Jul-2023 08:28:44 asa_2011_geometry_test(): MATLAB/Octave version 9.14.0.2306882 (R2023a) Update 4 Test asa_2011_geometry(). line_integral_test(): line_integral() estimates integral ( p1 <= x <= p2 ) f(x) dx n Integral estimate 1 30.8834 2 17.9944 4 17.6656 8 25.0677 16 23.0038 32 17.7925 64 18.5333 128 17.36 256 18.8533 512 18.1924 1024 19.1561 2048 19.1789 4096 18.6498 8192 18.6872 16384 18.7503 32768 18.6579 65536 18.793 131072 18.7696 262144 18.7412 524288 18.7688 1048576 18.7554 line_parameter_s_test(): line_parameter_s() evaluates the s parameter for a point p with respect to a line [p1,p2]. P1 = ( 4.000000, 0.000000) P2 = ( 3.000000, 4.000000) P S ( 1.000000, 4.000000) 1.117647 ( 2.000000, 1.000000) 0.352941 ( 2.000000, 3.000000) 0.823529 ( 3.000000, 2.000000) 0.529412 ( 3.000000, 4.000000) 1.000000 ( 3.000000, 5.000000) 1.235294 ( 4.000000, 1.000000) 0.235294 ( 4.000000, 5.000000) 1.176471 line_parameter_t_test(): line_parameter_t() evaluates the t parameter for a point p with respect to a line [p1,p2]. P1 = ( 4.000000, 0.000000) P2 = ( 3.000000, 4.000000) P T T_relative ( 1.000000, 4.000000) -1.940285 -0.470588 ( 2.000000, 1.000000) -1.697749 -0.411765 ( 2.000000, 3.000000) -1.212678 -0.294118 ( 3.000000, 2.000000) -0.485071 -0.117647 ( 3.000000, 4.000000) 0.000000 0.000000 ( 3.000000, 5.000000) 0.242536 0.058824 ( 4.000000, 1.000000) 0.242536 0.058824 ( 4.000000, 5.000000) 1.212678 0.294118 line_side_test(): line_side() reports whether point p is to the left of a line [p1,p2]. P1 = ( 4.000000, 0.000000) P2 = ( 3.000000, 4.000000) P S ( 1.000000, 4.000000) true ( 2.000000, 1.000000) true ( 2.000000, 3.000000) true ( 3.000000, 2.000000) true ( 3.000000, 4.000000) true ( 3.000000, 5.000000) false ( 4.000000, 1.000000) false ( 4.000000, 5.000000) false Triangle vertices: 4 2 1 5 -2 2 triangle_cartesian_to_barycentric_test() triangle_cartesian_to_barycentric() converts XY Cartesian coordinates to barycentric XSI coordinates; Px Py => XSI(A) XSI(B) XSI(C) => Px Py 3.000000 0.000000 1.166667 -0.333333 0.500000 3.333333 1.666667 0.250000 0.250000 0.666667 -0.291667 0.916667 0.541667 1.708333 0.750000 0.250000 0.750000 -0.291667 0.833333 1.041667 1.708333 1.000000 1.000000 0.666667 -0.166667 0.666667 1.166667 1.833333 11.000000 0.500000 2.416667 -0.250000 -0.916667 11.250000 1.750000 0.000000 1.000000 0.500000 -0.166667 0.833333 0.166667 1.833333 0.500000 -10.000000 2.416667 -2.000000 2.583333 2.500000 0.000000 0.600000 0.600000 0.666667 -0.233333 0.800000 0.833333 1.766667 triangle_contains_test(): triangle_contains() reports whether a point P is contained in a triangle T. Triangle vertices: 4 0 3 4 0 1 P contained? 1.000000 4.000000 false 2.000000 1.000000 true 2.000000 3.000000 true 3.000000 2.000000 true 3.000000 4.000000 true 3.000000 5.000000 false 4.000000 1.000000 false 4.000000 5.000000 false triangle_distance_test(): triangle_distance() reports the distance from a point P to a triangle T. Triangle vertices: 0 2 4 1 3 5 P Distance -2.000000 1.000000 2.236068 0.000000 2.000000 0.000000 2.000000 3.000000 0.000000 4.000000 4.000000 0.727607 6.000000 5.000000 2.910428 asa_2011_geometry_test() Normal end of execution. 30-Jul-2023 08:28:44