14-May-2025 08:17:14 asa_geometry_2011_test(): MATLAB/Octave version 6.4.0 Test asa_geometry_2011(). line_integral_test(): line_integral() estimates integral ( p1 <= x <= p2 ) f(x) dx n Integral estimate 1 31.3724 2 27.7902 4 16.5396 8 11.6928 16 19.6089 32 19.081 64 16.6826 128 17.8413 256 19.4448 512 18.356 1024 18.5153 2048 19.3634 4096 19.029 8192 18.789 16384 18.8737 32768 18.7503 65536 18.7969 131072 18.7567 262144 18.7363 524288 18.7232 1048576 18.7701 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_geometry_2011_test() Normal end of execution. 14-May-2025 08:17:14