geometry_test
geometry_test,
a MATLAB program which
calls geometry() to carry 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 GNU LGPL license.
Related Programs:
geometry,
a MATLAB library 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_2d_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
-
circle_area_2d_test.m
-
circle_imp_point_dist_2d_test.m
-
circle_lune_angle_by_height_2d_test.m
-
circle_sector_area_2d_test.m
-
circle_triangle_area_2d_test.m
-
circles_intersect_area_2d_test.m
-
circles_intersect_points_2d_test.m,
-
cone_volume_test.m
-
geometry_test009.m,
tests BOX_SEGMENT_CLIP_2D;
-
geometry_test010.m,
tests BOX_RAY_INT_2D;
-
geometry_test0125.m,
tests CIRCLE_LUNE_AREA_2D, SPHERE_CAP_VOLUME_2D, and
SPHERE_CAP_VOLUME_ND;
-
geometry_test0126.m,
tests SPHERE_CAP_VOLUME_3D and SPHERE_CAP_VOLUME_ND;
-
geometry_test0127.m,
tests SPHERE_CAP_AREA_3D and SPHERE_CAP_AREA_ND;
-
geometry_test013.m,
tests CIRCLE_SECTOR_CENTROID_2D;
-
geometry_test014.m,
tests CIRCLE_CONTAINS_POINT_2D and CIRCLE_CONTAINS_POINT_2D;
-
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;
-
geometry_test016.m,
tests CIRCLE_IMP_POINTS_2D and POLYGON_AREA_2D;
-
geometry_test0165.m,
tests CIRCLE_IMP_POINTS_3D;
-
geometry_test017.m,
tests CIRCLE_IMP_POINTS_ARC_2D;
-
geometry_test0183.m,
tests CIRCLE_LLR2IMP_3D;
-
geometry_test0185.m,
tests CIRCLE_PPPR2IMP_3D;
-
geometry_test019.m,
tests CIRCLE_PPR2IMP_2D;
-
circle_dia2imp_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
-
geometry_test020.m,
tests CUBE_SIZE_3D, CUBE_SHAPE_3D, and SHAPE_PRINT_3D;
-
geometry_test0201.m,
tests CYLINDER_POINT_DIST_3D;
-
geometry_test02015.m,
tests CYLINDER_POINT_DIST_SIGNED_3D;
-
geometry_test0202.m,
tests CYLINDER_POINT_INSIDE_3D;
-
geometry_test0203.m,
tests CYLINDER_POINT_NEAREST_3D;
-
geometry_test02035.m,
tests CYLINDER_SAMPLE_3D;
-
cylinder_volume_3d_test.m
-
degrees_to_radians_test.m
-
ellipse_area1_test.m
-
ellipse_area2_test.m
-
ellipse_area3_test.m
-
ellipse_point_dist_2d_test.m
-
ellipse_point_near_2d_test.m
-
ellipse_points_2d_test.m
-
ellipse_points_arc_2d_test.m
-
hyperball01_volume_test.m
-
hyperball01_volume_pnorm_test.m
-
geometry_test021.m,
tests DIRECTION_PERT_3D;
-
geometry_test022.m,
tests DIRECTION_UNIFORM_3D;
-
geometry_test023.m,
tests DIRECTION_UNIFORM_ND;
-
geometry_test0232.m,
tests DISK_POINT_DIST_3D;
-
geometry_test0235.m,
tests DMS_TO_RADIANS and RADIANS_TO_DMS;
-
geometry_test0236.m,
tests DODEC_SIZE_3D, DODEC_SHAPE_3D, and SHAPE_PRINT_3D;
-
geometry_test0238.m,
tests DUAL_SIZE_3D;
-
geometry_test024.m,
tests DUAL_SHAPE_3D;
-
geometry_test028.m,
tests HALFPLANE_CONTAINS_POINT_2D;
-
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;
-
geometry_test0321.m,
tests HEXAGON_VERTICES_2D;
-
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;
-
geometry_test0325.m,
tests ICOS_SIZE, ICOS_SHAPE, and SHAPE_PRINT_3D;
-
i4vec_uniform_ab_test.m,
returns a random I4VEC;
-
line_exp_perp_2d_test.m
-
line_exp2imp_2d_test.m
-
polar_to_xy_test.m
-
polygon_solid_angle_3d_test.m
-
geometry_test0327.m,
tests LINE_EXP_NORMAL_2D;
-
geometry_test0335.m,
tests LINE_EXP_POINT_DIST_2D;
-
geometry_test0336.m,
tests LINE_EXP_POINT_DIST_3D;
-
geometry_test0337.m,
tests LINE_EXP_POINT_DIST_SIGNED_2D;
-
geometry_test034.m,
tests LINE_EXP_POINT_NEAR_2D;
-
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_int_2d_test.m
-
lines_imp_int_2d_test.m
-
geometry_test038.m,
tests LINES_EXP_ANGLE_3D;
-
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;
-
geometry_test0475.m,
tests OCTAHEDRON_SIZE_3D and OCTAHEDRON_SHAPE_3D.
-
geometry_test0477.m,
tests PARALLELOGRAM_AREA_2D.
-
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.
-
geometry_test050.m,
tests PLANE_EXP_NORMAL_3D.
-
geometry_test051.m,
tests PLANE_EXP2IMP_3D.
-
geometry_test052.m,
tests PLANE_EXP2NORMAL_3D.
-
geometry_test053.m,
tests PLANE_EXP_PROJECT_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;
-
geometry_test062.m,
tests PLANE_NORMAL_TRIANGLE_INT_3D.
-
geometry_test063.m,
tests PLANE_NORMAL2EXP_3D;
-
geometry_test064.m,
tests PLANE_NORMAL2IMP_3D;
-
plane_exp_pro3_test.m
-
geometry_test065.m,
tests POINTS_CENTROID_2D;
-
geometry_test066.m,
tests POINTS_COLIN_2D;
-
geometry_test0755.m,
tests POLYGON_1_2D, POLYGON_X_2D, POLYGON_Y_2D, POLYGON_XX_2D,
POLYGON_XY_2D, and POLYGON_YY_2D,;
-
geometry_test0757.m,
tests POLYGON_ANGLES_2D;
-
geometry_test076.m,
tests POLYGON_AREA_2D;
-
geometry_test0765.m,
tests POLYGON_AREA_2D_2;
-
geometry_test078.m,
tests POLYGON_AREA_3D;
-
geometry_test0782.m,
tests POLYGON_AREA_3D_2;
-
geometry_test0784.m,
tests POLYGON_CENTROID_2D and POLYGON_CENTROID_2D_2;
-
geometry_test0786.m,
tests POLYGON_CENTROID_3D;
-
geometry_test079.m,
tests POLYGON_CONTAINS_POINT_2D and POLYGON_CONTAIN_POINT_2D_2;
-
geometry_test080.m,
tests POLYGON_DIAMETER_2D;
-
geometry_test0801.m,
tests POLYGON_EXPAND_2D;
-
geometry_test0803.m,
tests POLYGON_INRAD_DATA_2D, POLYGON_OUTRAD_DATA_2D, and
POLYGON_SIDE_DATA_2D;
-
geometry_test0805.m,
tests POLYGON_IS_CONVEX;
-
geometry_test081.m,
tests POLYHEDRON_AREA_3D;
-
geometry_test082.m,
tests POLYHEDRON_CENTROID_3D;
-
geometry_test0825.m,
tests POLYHEDRON_CONTAINS_POINT_3D;
-
geometry_test083.m,
tests POLYHEDRON_VOLUME_3D and POLYHEDRON_VOLUME_3D_2;
-
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
-
quad_angles_test.m
-
quad_angles_test.m
-
quad_convex_random_test.m
-
geometry_test171.m,
tests QUAD_AREA_2D and QUAD_AREA2_2D;
-
geometry_test1712.m,
tests QUAD_AREA_3D;
-
geometry_test1715.m,
tests QUAD_CONTAINS_POINT_2D, QUAD_POINT_DIST_2D,
QUAD_POINT_DIST_SIGNED_2D;
-
quad_is_convex_test.m
-
quad_is_simple_test.m
-
quad_random_test.m
-
geometry_test1787.m,
tests DGE_FA and DGE_SL;
-
r8_asin_test.m
-
r8_atan_test.m
-
r8_haversine_test.m
-
r8_uniform_01_test.m
-
r8_uniform_ab_test.m
-
r8vec_uniform_01_test.m,
returns a unit pseudorandom R8VEC.
-
r8vec_uniform_ab_test.m
-
r8vec3_print_test.m
-
quad_simple_random_test.m
-
r8_acos_test.m
-
r82vec_part_quick_a_test.m
-
r82vec_permute_test.m
-
r82vec_print_test.m
-
r8mat_solve.m,
solves an N by N linear system with multiple right hand sides.
-
r82vec_sort_heap_index_a_test.m
-
r82vec_sort_quick_a_test.m
-
r8mat_inverse_3d_test.m
-
r8mat_solve_test.m
-
r8mat_solve_2d_test.m
-
r8mat_uniform_ab_test.m,
returns a scaled pseudorandom R8MAT.
-
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
-
rtp_to_xyz_test.m,
converts (R,Theta,Phi) coordinates to XYZ coordinates;
-
segment_point_dist_2d_test.m
-
simplex_volume_nd_test.m
-
simplex01_volume_nd_test.m
-
geometry_test036.m,
tests SEGMENT_CONTAINS_POINT_1D;
-
geometry_test0365.m,
tests SEGMENT_POINT_DIST_2D;
-
geometry_test0366.m,
tests SEGMENT_POINT_DIST_3D;
-
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_test1788.m,
tests SIMPLEX_LATTICE_LAYER_POINT_NEXT;
-
geometry_test1789.m,
tests SIMPLEX_LATTICE_POINT_NEXT;
-
geometry_test179.m,
tests SOCCER_SIZE_3D and SOCCER_SHAPE_3D;
-
geometry_test068.m,
tests SPHERE_DISTANCE routines;
-
geometry_test182.m,
tests SPHERE_EXP_CONTAINS_POINT_3D and SPHERE_IMP_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;
-
geometry_test187.m,
tests SPHERE_IMP_GRIDFACES_3D;
-
sort_heap_external_test.m
-
sphere_dia2imp_3d_test.m
-
sphere01_area_nd_test.m
-
sphere_triangle_sides_to_angles_test.m
-
tetrahedron_barycentric_3d_test.m
-
geometry_test188.m,
tests SPHERE_IMP_POINT_PROJECT_3D;
-
geometry_test189.m,
tests SPHERE_IMP_VOLUME_ND;
-
geometry_test190.m,
tests SPHERE01_SAMPLE_2D;
-
geometry_test191.m,
tests SPHERE01_SAMPLE_3D;
-
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;
-
geometry_test1955.m,
tests SPHERE01_VOLUME_ND and SPHERE01_VOLUME_VALUES;
-
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_test201.m,
tests STRING_2D;
-
geometry_test202.m,
tests SUPER_ELLIPSE_POINTS_3D;
-
geometry_test2031.m,
tests TETRAHEDRON_CONTAINS_POINT_3D;
-
geometry_test2032.m,
tests TETRAHEDRON_CIRCUMSPHERE_3D;
-
geometry_test20321.m,
tests TETRAHEDRON_EDGE_LENGTH_3D;
-
geometry_test20322.m,
tests TETRAHEDRON_INSPHERE_3D;
-
geometry_test203224.m,
tests TETRAHEDRON_LATTICE_LAYER_POINT_NEXT;
-
tetrahedron_centroid_3d_test.m
-
tetrahedron_sample_3d_test.m
-
tetrahedron_solid_angles_3d_test.m
-
tetrahedron_volume_3d_test.m
-
tetrahedron01_volume_test.m
-
geometry_test203225.m,
tests TETRAHEDRON_LATTICE_POINT_NEXT;
-
geometry_test20323.m,
tests TETRAHEDRON_QUALITY1_3D;
-
geometry_test203232.m,
tests TETRAHEDRON_QUALITY2_3D;
-
geometry_test203233.m,
tests TETRAHEDRON_QUALITY3_3D;
-
geometry_test203234.m,
tests TETRAHEDRON_QUALITY4_3D;
-
geometry_test203235.m,
tests TETRAHEDRON_RHOMBIC_SHAPE_3D and TETRAHEDRON_RHOMBIC_SIZE_3D;
-
geometry_test20325.m,
tests TETRAHEDRON_SIZE_3D and TETRAHEDRON_SHAPE_3D;
-
geometry_test204.m,
tests TMAT_INIT, TMAT_ROT_AXIS, TMAT_ROT_VECTOR, TMAT_SCALE,
TMAT_SHEAR and TMAT_TRANS;
-
geometry_test205.m,
tests TMAT_MXP2;
-
geometry_test206.m,
tests TRIANGLE_ANGLES_2D;
-
geometry_test20605.m,
tests TRIANGLE_ANGLES_3D;
-
geometry_test2061.m,
tests TRIANGLE_AREA_2D;
-
geometry_test209.m,
tests TRIANGLE_AREA_3D, TRIANGLE_AREA_3D_2, and TRIANGLE_AREA_3D_3;
-
geometry_test2066.m,
tests TRIANGLE_CENTROID_2D;
-
geometry_test2094.m,
tests TRIANGLE_CENTROID_3D;
-
geometry_test2101.m,
tests TRIANGLE_CIRCUMCENTER_2D and TRIANGLE_CIRCUMCENTER_2D_2;
-
geometry_test2067.m,
tests TRIANGLE_CIRCUMCIRCLE_2D and TRIANGLE_CIRCUMCIRCLE_2D_2;
-
geometry_test21015.m,
tests TRIANGLE_CIRCUMRADIUS_2D;
-
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;
-
geometry_test2075.m,
tests TRIANGLE_DIAMETER_2D;
-
geometry_test208.m,
tests TRIANGLE_GRIDPOINTS_2D;
-
geometry_test2102.m,
tests TRIANGLE_INCENTER_2D;
-
geometry_test2070.m,
tests TRIANGLE_INCIRCLE_2D;
-
geometry_test20701.m,
tests TRIANGLE_INRADIUS_2D;
-
geometry_test2104.m,
tests TRIANGLE_LATTICE_LAYER_POINT_NEXT;
-
geometry_test2105.m,
tests TRIANGLE_LATTICE_POINT_NEXT;
-
geometry_test214.m,
tests TRIANGLE_ORIENTATION_2D;
-
geometry_test2103.m,
tests TRIANGLE_ORTHOCENTER_2D;
-
geometry_test2071.m,
tests TRIANGLE_POINT_DIST_2D;
-
geometry_test20715.m,
tests TRIANGLE_POINT_DIST_SIGNED_2D;
-
geometry_test2095.m,
tests TRIANGLE_POINT_DIST_3D;
-
geometry_test2072.m,
tests TRIANGLE_POINT_NEAR_2D;
-
geometry_test2115.m,
tests TRIANGLE_QUALITY_2D;
-
geometry_test212.m,
tests TRIANGLE_SAMPLE and TRIANGLE_XY_TO_XSI_2D;
-
geometry_test213.m,
tests TRIANGLE_SAMPLE, TRIANGLE_XSI_TO_XY_2D,
and TRIANGLE_XY_TO_XSI_2D;
-
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
-
triangle_area_heron_test.m
-
triangle_barycentric_2d_test.m
-
vector_rotate_2d_test.m
-
wedge01_volume_test.m
-
xyz_to_rtp_test.m
Last revised on 25 January 2019.