pub struct Cuboid<T> {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
pub h: T,
pub l: T,
}
Expand description
A Cuboid is a
The constructor will not check the legality of the parameters, call [is_valid] to ensure that the rectangle_2d is legal.
let rect = Square::new(0.0, 0.0, 1.0);
The origin x of the cuboid.
The origin y of the cuboid.
The origin z of the cuboid.
The height of the cuboid.
The length of the cuboid.
Create a cuboid from 6 properties
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.