Cuboid

Type Alias Cuboid 

Source
pub type Cuboid = Cuboid;
Expand description

A cuboid shape.

Aliased Type§

#[repr(C)]
pub struct Cuboid { pub half_extents: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>, }

Fields§

§half_extents: Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>

The half-extents of the cuboid along each axis.

Each component represents half the dimension along that axis:

  • half_extents.x: Half the width
  • half_extents.y: Half the height
  • half_extents.z: Half the depth (3D only)

All components should be positive.