pub struct CompactHeightfield<TypeState: CompactHeightfieldState> { /* private fields */ }
Implementations§
Source§impl<TypeState: CompactHeightfieldState> CompactHeightfield<TypeState>
impl<TypeState: CompactHeightfieldState> CompactHeightfield<TypeState>
pub fn grid_width(&self) -> i32
pub fn grid_height(&self) -> i32
pub fn walkable_height(&self) -> i32
pub fn walkable_climb(&self) -> i32
pub fn min_bounds(&self) -> Vec3<f32>
pub fn max_bounds(&self) -> Vec3<f32>
pub fn cell_horizontal_size(&self) -> f32
pub fn cell_height(&self) -> f32
pub fn cells_iter(&self) -> impl Iterator<Item = Range<usize>> + '_
pub fn cell(&self, index: usize) -> Range<usize>
pub fn spans_len(&self) -> usize
pub fn spans_iter( &self, ) -> impl Iterator<Item = CompactSpan<'_, TypeState>> + '_
pub fn span_areas(&self) -> &[u8] ⓘ
Source§impl CompactHeightfield<NoRegions>
impl CompactHeightfield<NoRegions>
pub fn new( heightfield: &Heightfield, context: &mut Context, walkable_height: i32, walkable_climb: i32, ) -> Result<Self, ()>
pub fn erode_walkable_area( &mut self, context: &mut Context, radius: i32, ) -> Result<(), ()>
pub fn mark_box_area_with_id( &mut self, context: &mut Context, min_bounds: Vec3<f32>, max_bounds: Vec3<f32>, new_id: u8, )
pub fn mark_cylinder_area_with_id( &mut self, context: &mut Context, position: Vec3<f32>, radius: f32, height: f32, new_id: u8, )
pub fn mark_convex_poly_area_with_id( &mut self, context: &mut Context, vertices: &[Vec3<f32>], base_height: f32, top_height: f32, new_id: u8, )
pub fn median_filter_area_ids( &mut self, context: &mut Context, ) -> Result<(), ()>
pub fn build_regions( self, context: &mut Context, border_size: i32, min_region_area: i32, merge_region_area: i32, ) -> Result<CompactHeightfield<HasRegions>, ()>
pub fn build_layer_regions( self, context: &mut Context, border_size: i32, min_region_area: i32, ) -> Result<CompactHeightfield<HasRegions>, ()>
pub fn build_regions_monotone( self, context: &mut Context, border_size: i32, min_region_area: i32, merge_region_area: i32, ) -> Result<CompactHeightfield<HasRegions>, ()>
Source§impl CompactHeightfield<HasRegions>
impl CompactHeightfield<HasRegions>
pub fn border_size(&self) -> i32
pub fn max_region_id(&self) -> u16
pub fn max_distance(&self) -> u16
Auto Trait Implementations§
impl<TypeState> Freeze for CompactHeightfield<TypeState>
impl<TypeState> RefUnwindSafe for CompactHeightfield<TypeState>where
TypeState: RefUnwindSafe,
impl<TypeState> Send for CompactHeightfield<TypeState>where
TypeState: Send,
impl<TypeState> !Sync for CompactHeightfield<TypeState>
impl<TypeState> Unpin for CompactHeightfield<TypeState>where
TypeState: Unpin,
impl<TypeState> UnwindSafe for CompactHeightfield<TypeState>where
TypeState: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more