pub fn serialize_box_from_key(
key: usize,
origin: &[f64; 3],
diameter: &[f64; 3],
) -> Vec<f64>
Expand description
Serialized representation of a box associated with a key.
Returns a vector with 24 f64 entries, associated with the 8 x,y,z coordinates of the box associated with the key. If the lower left corner of the box is (0, 0, 0). Then the points are numbered in the following order.
- (0, 0, 0)
- (1, 0, 0)
- (0, 1, 0)
- (0, 1, 1)
- (0, 0, 1)
- (1, 0, 1)
- (0, 1, 1)
- (1, 1, 1)
ยงArguments
key
- The key for which the box is taken.origin
- The origin of the bounding box.diameter
- The diameter of the bounding box in each dimension.