Skip to main content

IMapHeightMethods

Trait IMapHeightMethods 

Source
pub trait IMapHeightMethods: IMapHeight {
Show 19 methods // Provided methods fn ctor(self) { ... } fn clear(self) { ... } fn get_cell_map( self, layer: impl Into<MapHeight_Layers>, ) -> MapHeight_CellMap { ... } fn get_over(self) -> MapHeight_CellMap { ... } fn get_under(self) -> MapHeight_CellMap { ... } fn update(self, x: impl Into<i32>, z: impl Into<i32>) { ... } fn on_update(self) { ... } fn get( self, pos: impl Into<Vector3>, layer: impl Into<MapHeight_Layers>, ) -> f32 { ... } fn get_normal( self, pos: impl Into<Vector3>, layer: impl Into<MapHeight_Layers>, ) -> Vector3 { ... } fn get_max_height(self, x: impl Into<i32>, z: impl Into<i32>) -> f32 { ... } fn get_min_height(self, x: impl Into<i32>, z: impl Into<i32>) -> f32 { ... } fn get_2( self, x: impl Into<f32>, z: impl Into<f32>, layer: impl Into<MapHeight_Layers>, ) -> f32 { ... } fn get_3( self, x: impl Into<i32>, z: impl Into<i32>, index: impl Into<i32>, layer: impl Into<MapHeight_Layers>, ) -> f32 { ... } fn get_normal_2( self, x: impl Into<f32>, z: impl Into<f32>, layer: impl Into<MapHeight_Layers>, ) -> Vector3 { ... } fn get_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32 { ... } fn get_min_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32 { ... } fn get_max_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32 { ... } fn is_slope( self, x: impl Into<i32>, z: impl Into<i32>, slope: impl Into<f32>, ) -> bool { ... } fn get_tilt_angle(self, x: impl Into<i32>, z: impl Into<i32>) -> f32 { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn clear(self)

Clear() overload

Source

fn get_cell_map(self, layer: impl Into<MapHeight_Layers>) -> MapHeight_CellMap

GetCellMap(crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_over(self) -> MapHeight_CellMap

GetOver() overload

Source

fn get_under(self) -> MapHeight_CellMap

GetUnder() overload

Source

fn update(self, x: impl Into<i32>, z: impl Into<i32>)

Update(i32, i32) overload

Source

fn on_update(self)

OnUpdate() overload

Source

fn get(self, pos: impl Into<Vector3>, layer: impl Into<MapHeight_Layers>) -> f32

Get(crate::unity_engine::vector3::Vector3, crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_normal( self, pos: impl Into<Vector3>, layer: impl Into<MapHeight_Layers>, ) -> Vector3

GetNormal(crate::unity_engine::vector3::Vector3, crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_max_height(self, x: impl Into<i32>, z: impl Into<i32>) -> f32

GetMaxHeight(i32, i32) overload

Source

fn get_min_height(self, x: impl Into<i32>, z: impl Into<i32>) -> f32

GetMinHeight(i32, i32) overload

Source

fn get_2( self, x: impl Into<f32>, z: impl Into<f32>, layer: impl Into<MapHeight_Layers>, ) -> f32

Get(f32, f32, crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_3( self, x: impl Into<i32>, z: impl Into<i32>, index: impl Into<i32>, layer: impl Into<MapHeight_Layers>, ) -> f32

Get(i32, i32, i32, crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_normal_2( self, x: impl Into<f32>, z: impl Into<f32>, layer: impl Into<MapHeight_Layers>, ) -> Vector3

GetNormal(f32, f32, crate::app::mapheight::MapHeight_Layers) overload

Source

fn get_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32

GetEdge(i32, i32, crate::app::dir_2::Dir_Type) overload

Source

fn get_min_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32

GetMinEdge(i32, i32, crate::app::dir_2::Dir_Type) overload

Source

fn get_max_edge( self, x: impl Into<i32>, z: impl Into<i32>, dir: impl Into<Dir_Type>, ) -> f32

GetMaxEdge(i32, i32, crate::app::dir_2::Dir_Type) overload

Source

fn is_slope( self, x: impl Into<i32>, z: impl Into<i32>, slope: impl Into<f32>, ) -> bool

IsSlope(i32, i32, f32) overload

Source

fn get_tilt_angle(self, x: impl Into<i32>, z: impl Into<i32>) -> f32

GetTiltAngle(i32, i32) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IMapHeight> IMapHeightMethods for __T

Available on crate feature app-mapheight only.