brep_kernel/io/step_matrix.rs
1//! Matrix composition shared by STEP import and export.
2
3/// A row-major 4×4 matrix used for STEP assembly placements.
4pub type Mat4 = [f64; 16];
5
6pub(crate) const MAT4_IDENTITY: Mat4 = [
7 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0,
8];
9
10pub(crate) fn mat4_mul(a: &Mat4, b: &Mat4) -> Mat4 {
11 crate::transform_topology::multiply_elements(a, b)
12}
13