geometry_test
geometry_test,
an Octave code which
calls geometry(), which
carries out geometric calculations in 2, 3 and N space.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the MIT license
Related Programs:
geometry,
an Octave code which
performs geometric calculations in 2, 3 and M dimensional space,
including the computation of angles, areas, containment, distances,
intersections, lengths, and volumes.
Source code:
-
angle_box_2d_test.m
-
angle_contains_point_2d_test.m
-
angle_deg_2d_test.m
-
angle_half_2d_test.m
-
angle_rad_test.m
-
angle_rad_3d_test.m
-
angle_rad_nd_test.m
-
angle_turn_2d_test.m
-
annulus_area_2d_test.m
-
annulus_sector_area_2d_test.m
-
annulus_sector_centroid_2d_test.m
-
ball01_sample_2d_test.m
-
ball01_sample_3d_test.m
-
ball01_sample_nd_test.m
-
ball01_volume_test.m
-
basis_map_3d_test.m
-
box_ray_int_2d_test.m,
-
box_segment_clip_2d_test.m
-
circle_area_2d_test.m
-
circle_dia2imp_2d_test.m
-
circle_imp_point_dist_2d_test.m
-
circle_imp_print_2d_test.m
-
circle_imp_segment_intersect_test.m
-
circle_exp2imp_2d_test.m
-
circle_lune_angle_by_height_2d_test.m
-
circle_lune_area_by_angle_2d_test.m
-
circle_lune_area_by_height_2d_test.m
-
circle_lune_centroid_2d_test.m
-
circle_lune_height_by_angle_2d_test.m
-
circle_sector_area_2d_test.m
-
circle_sector_centroid_2d_test.m
-
circle_triangle_area_2d_test.m
-
circles_intersect_area_2d_test.m
-
circles_intersect_points_2d_test.m,
-
circle_exp_contains_point_2d_test.m
-
geometry_test015.m,
tests CIRCLE_EXP2IMP_2D and TRIANGLE_CIRCUMCIRCLE_2D;
-
geometry_test0155.m,
tests CIRCLE_EXP2IMP_2D;
-
geometry_test0156.m,
tests CIRCLE_EXP2IMP_2D and CIRCLE_IMP2EXP_2D;
-
circle_imp_points_test.m
-
circle_imp_points_3d_test.m
-
circle_imp_points_arc_test.m
-
geometry_test0183.m,
tests CIRCLE_LLR2IMP_3D;
-
geometry_test0185.m,
tests CIRCLE_PPPR2IMP_3D;
-
geometry_test019.m,
tests CIRCLE_PPR2IMP_2D;
-
cone_volume_test.m
-
cube_shape_test.m
-
cylinder_point_dist_test.m
-
cylinder_point_dist_signed_test.m
-
cylinder_point_inside_test.m
-
cylinder_point_near_test.m
-
cylinder_sample_test.m
-
cylinder_volume_test.m
-
degrees_to_radians_test.m
-
geometry_test021.m,
tests DIRECTION_PERT_3D;
-
direction_uniform_3d_test.m
-
direction_uniform_nd_test.m
-
disk_point_dist_3d_test.m
-
dms_to_radians_test.m
-
dodec_shape_test.m
-
dual_shape_test.m
-
dual_size_test.m
-
halfplane_contains_point_2d_test.m
-
geometry_test029.m,
tests HALFSPACE_IMP_TRIANGLE_INT_3D;
-
geometry_test030.m,
tests HALFSPACE_NORMAL_TRIANGLE_INT_3D;
-
geometry_test0315.m,
tests HEXAGON_CONTAINS_POINT_2D;
-
geometry_test032.m,
tests HEXAGON_SHAPE_2D;
-
hexagon01_vertices_test.m
-
hyperball01_volume_test.m
-
hyperball01_volume_pnorm_test.m
-
i4_wrap_test.m
-
i4vec_heap_d_test.m
-
i4vec_indicator1_test.m
-
i4vec_lcm_test.m
-
i4vec_print_test.m
-
geometry_test0322.m,
tests I4COL_FIND_ITEM;
-
geometry_test0323.m,
tests I4COL_FIND_PAIR_WRAP;
-
icos_shape_test.m
-
i4vec_uniform_ab_test.m
-
line_exp_perp_2d_test.m
-
line_exp_normal_test.m
-
line_exp_point_dist_test.m
-
line_exp_point_dist_3d_test.m
-
line_exp_point_dist_signed_test.m
-
geometry_test034.m,
tests LINE_EXP_POINT_NEAR_2D;
-
line_exp2imp_2d_test.m
-
geometry_test0346.m,
tests LINE_EXP2PAR_2D and LINE_PAR2EXP_2D;
-
geometry_test035.m,
tests LINE_IMP_POINT_DIST_2D;
-
geometry_test0351.m,
tests LINE_IMP_POINT_NEAR_2D;
-
geometry_test0352.m,
tests LINE_IMP_POINT_NEAR_3D;
-
line_imp2exp_2d_test.m
-
lines_exp_angle_3d_test.m
-
lines_exp_int_2d_test.m
-
lines_imp_int_2d_test.m
-
geometry_test0385.m,
tests LINES_EXP_DIST_3D and LINES_EXP_DIST_3D_2;
-
geometry_test03855.m,
tests LINES_EXP_NEAR_3D;
-
geometry_test0386.m,
tests LINES_EXP_EQUAL_2D;
-
geometry_test040.m,
tests LINES_IMP_ANGLE_2D;
-
geometry_test041.m,
tests LINES_IMP_DIST_2D;
-
geometry_test0416.m,
tests LINES_PAR_INT_2D;
-
geometry_test046.m,
tests MINABS;
-
geometry_test047.m,
tests MINQUAD;
-
octahedron_shape_test.m
-
parallelogram_area_test.m
-
geometry_test0478.m,
tests PARALLELOGRAM_AREA_3D.
-
geometry_test048.m,
tests PARALLELOGRAM_CONTAINS_POINT_2D.
-
geometry_test0485.m,
tests PARALLELOGRAM_CONTAINS_POINT_2D.
-
geometry_test049.m,
tests PARALLELOGRAM_CONTAINS_POINT_3D.
-
geometry_test0493.m,
tests PARABOLA_EX and PARABOLA_EX2.
-
geometry_test0495.m,
tests PARALLELEPIPED_POINT_DIST_3D.
-
plane_exp_normal_test.m
-
plane_exp_project_test.m
-
plane_exp2imp_3d_test.m
-
geometry_test052.m,
tests PLANE_EXP2NORMAL_3D.
-
geometry_test054.m,
tests PLANE_IMP2EXP_3D.
-
geometry_test055.m,
tests PLANE_IMP2NORMAL_3D.
-
geometry_test056.m,
tests PLANE_IMP_LINE_PAR_INT_3D.
-
geometry_test057.m,
tests PLANE_IMP_SEGMENT_NEAR_3D.
-
geometry_test058.m,
tests PLANE_IMP_POINT_DIST_3D and PLANE_IMP_POINT_DIST_SIGNED_3D.
-
geometry_test059.m,
tests PLANE_IMP_TRIANGLE_NEAR_3D.
-
geometry_test060.m,
tests PLANE_IMP_TRIANGLE_INT_3D.
-
geometry_test061.m,
tests PLANE_NORMAL_BASIS_3D.
-
geometry_test0615.m,
tests PLANE_NORMAL_LINE_EXP_INT_3D;
-
geometry_test0616.m,
tests PLANE_NORMAL_QR_TO_XYZ and PLANE_NORMAL_XYZ_TO_QR;
-
geometry_test0617.m,
tests PLANE_NORMAL_TETRAHEDRON_INTERSECT;
-
plane_normal_triangle_int_3d_test.m
-
geometry_test063.m,
tests PLANE_NORMAL2EXP_3D;
-
geometry_test064.m,
tests PLANE_NORMAL2IMP_3D;
-
plane_exp_pro3_test.m
-
points_centroid_2d_test.m
-
points_colin_2d_test.m
-
polar_to_xy_test.m
-
polyhedron_area_3d_test.m
-
polyhedron_centroid_3d_test.m
-
polyhedron_contains_point_3d_test.m
-
polyhedron_volume_3d_test.m
-
polyhedron_volume_3d_2_test.m
-
geometry_test084.m,
tests POLYLINE_INDEX_POINT_ND and POLYLINE_ARCLENGTH_ND;
-
geometry_test0844.m,
tests POLYLINE_POINTS_ND;
-
geometry_test0845.m,
tests POLYLOOP_ARCLENGTH_ND;
-
geometry_test0846.m,
tests POLYLOOP_POINTS_ND;
-
provec_test.m
-
pyramid_volume_3d_test.m
-
pyramid01_volume_3d_test.m
-
r8_haversine_test.m
-
r8vec3_print_test.m
-
r82vec_part_quick_a_test.m
-
r82vec_permute_test.m
-
r82vec_print_test.m
-
r82vec_sort_heap_index_a_test.m
-
r82vec_sort_quick_a_test.m
-
r8mat_inverse_3d_test.m
-
r8vec_any_normal_test.m
-
r8vec_normal_01_test.m
-
r8vec_scalar_triple_product_test.m
-
radec_distance_3d_test.m
-
radec_to_xyz_test.m
-
radians_to_degrees_test.m
-
radians_to_dms_test.m
-
rtp_to_xyz_test.m,
converts (R,Theta,Phi) coordinates to XYZ coordinates;
-
segment_point_dist_2d_test.m
-
segment_contains_point_1d_test.m
-
segment_point_dist_test.m
-
geometry_test0366.m,
tests SEGMENT_POINT_DIST_3D;
-
segment_point_near_test.m
-
geometry_test0368.m,
tests SEGMENT_POINT_NEAR_3D;
-
geometry_test037.m,
tests SEGMENT_POINT_NEAR_3D;
-
geometry_test0418.m,
tests SEGMENTS_CURVATURE_2D;
-
geometry_test042.m,
tests SEGMENTS_DIST_2D;
-
geometry_test043.m,
tests SEGMENTS_DIST_3D;
-
geometry_test044.m,
tests SEGMENTS_INT_1D;
-
geometry_test045.m,
tests SEGMENTS_INT_2D;
-
geometry_test196.m,
tests SHAPE_POINT_DIST_2D;
-
geometry_test197.m,
tests SHAPE_POINT_DIST_2D;
-
geometry_test198.m,
tests SHAPE_POINT_NEAR_2D;
-
geometry_test199.m,
tests SHAPE_RAY_INT_2D;
-
geometry_test1788.m,
tests SIMPLEX_LATTICE_LAYER_POINT_NEXT;
-
geometry_test1789.m,
tests SIMPLEX_LATTICE_POINT_NEXT;
-
simplex_volume_nd_test.m
-
simplex01_volume_nd_test.m
-
soccer_shape_test.m
-
sort_heap_external_test.m
-
sphere_cap_volume_3d_test.m
-
geometry_test0127.m,
tests SPHERE_CAP_AREA_3D and SPHERE_CAP_AREA_ND;
-
sphere_dia2imp_3d_test.m
-
geometry_test068.m,
tests SPHERE_DISTANCE routines;
-
geometry_test182.m,
tests SPHERE_EXP_CONTAINS_POINT_3D;
-
geometry_test183.m,
tests SPHERE_EXP_POINT_NEAR_3D and SPHERE_IMP_POINT_NEAR_3D;
-
geometry_test1835.m,
tests SPHERE_EXP2IMP_3D and SPHERE_IMP2EXP_3D;
-
geometry_test1836.m,
tests SPHERE_EXP2IMP_ND;
-
sphere_imp_area_nd_test.m
-
sphere_imp_contains_point_3d_test.m
-
sphere_imp_gridfaces_3d_test.m
-
sphere_imp_point_project_3d_test.m
-
sphere_imp_volume_nd_test.m
-
sphere_triangle_sides_to_angles_test.m
-
sphere01_area_nd_test.m
-
sphere01_sample_2d_test.m
-
sphere01_sample_3d_test.m
-
geometry_test192.m,
tests SPHERE01_SAMPLE_3D_2;
-
geometry_test193.m,
tests SPHERE01_SAMPLE_ND;
-
geometry_test194.m,
tests SPHERE01_SAMPLE2_ND;
-
geometry_test195.m,
tests SPHERE01_SAMPLE3_ND;
-
sphere01_volume_nd_test.m
-
string_2d_test.m
-
super_ellipse_points_2d_test.m
-
geometry_test204.m,
tests TMAT_INIT, TMAT_ROT_AXIS, TMAT_ROT_VECTOR, TMAT_SCALE,
TMAT_SHEAR and TMAT_TRANS;
-
tmat_mxp2_test.m
-
triangle_angles_2d_test.m
-
triangle_angles_3d_test.m
-
triangle_area_test.m
-
triangle_area_3d_test.m
-
triangle_area_heron_test.m
-
triangle_barycentric_test.m
-
triangle_centroid_test.m
-
triangle_centroid_3d_test.m
-
triangle_circumcenter_test.m
-
triangle_circumcenter_nd_test.m
-
geometry_test2067.m,
tests TRIANGLE_CIRCUMCIRCLE_2D and TRIANGLE_CIRCUMCIRCLE_2D_2;
-
triangle_circumradius_test.m
-
geometry_test2068.m,
tests TRIANGLE_CONTAINS_LINE_EXP_3D;
-
geometry_test2069.m,
tests TRIANGLE_CONTAINS_LINE_PAR_3D;
-
geometry_test207.m,
tests TRIANGLE_CONTAINS_POINT_2D_1, TRIANGLE_CONTAINS_POINT_2D_2,
TRIANGLE_CONTAINS_POINT_2D_3;
-
triangle_diameter_test.m
-
triangle_gridpoints_test.m
-
triangle_incenter_test.m
-
triangle_incircle_test.m
-
triangle_inradius_test.m
-
triangle_lattice_layer_point_next_test.m
-
triangle_lattice_point_next_test.m
-
triangle_orientation_test.m
-
geometry_test2103.m,
tests TRIANGLE_ORTHOCENTER_2D;
-
triangle_point_dist_test.m
-
geometry_test20715.m,
tests TRIANGLE_POINT_DIST_SIGNED_2D;
-
geometry_test2095.m,
tests TRIANGLE_POINT_DIST_3D;
-
triangle_point_near_test.m
-
geometry_test2115.m,
tests TRIANGLE_QUALITY_2D;
-
triangle_sample_test.m
-
geometry_test213.m,
tests TRIANGLE_XSI_TO_XY,
and TRIANGLE_XY_TO_XSI;
-
geometry_test219.m,
tests TUBE_2D;
-
geometry_test220.m,
tests VECTOR_DIRECTIONS_ND;
-
geometry_test221.m,
tests VECTOR_DIRECTIONS_ND;
-
geometry_test2225.m,
tests VECTOR_ROTATE_3D;
-
vector_rotate_base_2d_test.m
-
vector_separation_nd_test.m
-
xy_to_polar_test.m
-
xyz_to_radec_test.m
-
vector_unit_nd_test.m
-
voxels_dist_l1_nd_test.m
-
voxels_line_3d_test.m
-
voxels_region_3d_test.m
-
voxels_step_3d_test.m
-
vector_rotate_2d_test.m
-
wedge01_volume_test.m
-
xyz_to_rtp_test.m
Last revised on 25 April 2022.