30-Jul-2023 09:20:02 asa_2011_geometry_test(): MATLAB/Octave version 5.2.0 Test asa_2011_geometry(). line_integral_test(): line_integral() estimates integral ( p1 <= x <= p2 ) f(x) dx n Integral estimate 1 20.7606 2 16.734 4 14.1335 8 16.0836 16 17.5486 32 17.6083 64 17.9216 128 19.2644 256 18.8957 512 17.995 1024 18.9947 2048 18.7551 4096 18.5417 8192 18.6937 16384 18.9116 32768 18.7589 65536 18.7996 131072 18.7634 262144 18.7631 524288 18.7713 1048576 18.7391 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.666667 0.500000 3.000000 0.000000 0.250000 0.250000 0.666667 -0.583333 0.916667 0.250000 0.250000 0.750000 0.250000 0.750000 -0.583333 0.833333 0.750000 0.250000 1.000000 1.000000 0.666667 -0.333333 0.666667 1.000000 1.000000 11.000000 0.500000 2.416667 -0.500000 -0.916667 11.000000 0.500000 0.000000 1.000000 0.500000 -0.333333 0.833333 -0.000000 1.000000 0.500000 -10.000000 2.416667 -4.000000 2.583333 0.500000 -10.000000 0.600000 0.600000 0.666667 -0.466667 0.800000 0.600000 0.600000 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 09:20:02