Skip to main content

Crate landmark_common

Crate landmark_common 

Source
Expand description

Common utilities and data structures used by both Recast and Detour

Modules§

debug
Debug visualization utilities for recast-navigation

Structs§

MeshComplexityAnalysis
Analysis of mesh complexity for recommending simplification parameters
MeshSimplifier
Mesh simplifier with multiple algorithms
SimplificationConfig
Configuration for mesh simplification operations
SimplificationResult
Result of a mesh simplification operation
SimplificationStats
Statistics from mesh simplification
TriMesh
A simple triangle mesh

Enums§

MeshError
Error for mesh I/O and structural validation

Functions§

align4
between
Assumes the points are collinear.
clamp
closest_point_on_segment
Finds the closest point on a line segment to a given point
closest_point_on_segment_2d
closest_point_on_triangle
collinear
convex_hull_2d
Uses Graham’s scan algorithm.
cross_2d
deg_to_rad
dist_2d
dist_2d_vec3
dist_point_segment_2d
dist_point_segment_sqr_2d
dist_point_segment_sqr_2d_with_t
Returns (distance_squared, t) where t is the parametric position on the segment.
dist_sqr_2d
dist_sqr_2d_vec3
distance
Calculates the distance between two points
distance_point_segment
Calculates the distance between a point and a line segment
distance_point_segment_squared
Calculates the squared distance between a point and a line segment
distance_point_triangle_squared
distance_pt_poly_edges_sqr
Returns (inside, edge_dists, edge_ts):
distance_squared
Calculates the squared distance between two points
dot_2d
float_to_int
ilog2
intersect_segment_poly_2d
Returns (tmin, tmax, seg_min, seg_max):
intersect_segments_2d
Returns true if the segments intersect, including touching at endpoints.
left
left_on
lerp
next_pow2
overlap_bounds
overlap_bounds_2d
overlap_cylinder_segment
overlap_segment_1d
perp_2d
point_in_polygon_2d
Uses the winding number algorithm.
point_in_triangle
project_poly_2d
rad_to_deg
ray_triangle_intersection
Checks if a ray intersects a triangle
right
right_on
sqr
tri_area_2d
Returns twice the signed area. The sign indicates winding order:
tri_area_2d_vec3
Vec3 variant of tri_area_2d.
triangle_area
vadd
vcopy
vec_perp_2d
vlerp
vmad
Returns v1 + v2 * s.
vmax
vmax_mut
vmin
vmin_mut
vnormalize
vscale
vset
vsub
vzero
vzero_new

Type Aliases§

Vec3
Represents a 3D position