Struct ark_api::MeshBounds
source · pub struct MeshBounds {
pub bounding_box_min: Vec3,
pub bounding_box_max: Vec3,
pub bounding_sphere_radius: f32,
}Expand description
Bounding box & sphere of mesh.
For usability, this is translated to ffi::MeshBounds.
The Vec3-as-four-floats thing makes it ugly to try to map it directly.
Fields§
§bounding_box_min: Vec3Bounding box minimum
bounding_box_max: Vec3Bounding box maximum
bounding_sphere_radius: f32Bounding sphere radius from origin
Implementations§
source§impl MeshBounds
impl MeshBounds
sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
The bounding box.
Trait Implementations§
source§impl Clone for MeshBounds
impl Clone for MeshBounds
source§fn clone(&self) -> MeshBounds
fn clone(&self) -> MeshBounds
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MeshBounds
impl Debug for MeshBounds
source§impl<'de> Deserialize<'de> for MeshBounds
impl<'de> Deserialize<'de> for MeshBounds
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more