Add missing repr(C) on bytemuckable geometry types

This commit is contained in:
CAD97 2021-06-28 20:49:57 -05:00
parent cb0812aaf3
commit 396d3d6615
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ use crate::base::{Matrix4, Vector, Vector3};
use crate::geometry::{Point3, Projective3}; use crate::geometry::{Point3, Projective3};
/// A 3D orthographic projection stored as a homogeneous 4x4 matrix. /// A 3D orthographic projection stored as a homogeneous 4x4 matrix.
#[repr(C)]
pub struct Orthographic3<T: RealField> { pub struct Orthographic3<T: RealField> {
matrix: Matrix4<T>, matrix: Matrix4<T>,
} }

View File

@ -19,6 +19,7 @@ use crate::base::{Matrix4, Scalar, Vector, Vector3};
use crate::geometry::{Point3, Projective3}; use crate::geometry::{Point3, Projective3};
/// A 3D perspective projection stored as a homogeneous 4x4 matrix. /// A 3D perspective projection stored as a homogeneous 4x4 matrix.
#[repr(C)]
pub struct Perspective3<T: Scalar> { pub struct Perspective3<T: Scalar> {
matrix: Matrix4<T>, matrix: Matrix4<T>,
} }