forked from M-Labs/nalgebra
Add missing repr(C) on bytemuckable geometry types
This commit is contained in:
parent
cb0812aaf3
commit
396d3d6615
@ -18,6 +18,7 @@ use crate::base::{Matrix4, Vector, Vector3};
|
||||
use crate::geometry::{Point3, Projective3};
|
||||
|
||||
/// A 3D orthographic projection stored as a homogeneous 4x4 matrix.
|
||||
#[repr(C)]
|
||||
pub struct Orthographic3<T: RealField> {
|
||||
matrix: Matrix4<T>,
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ use crate::base::{Matrix4, Scalar, Vector, Vector3};
|
||||
use crate::geometry::{Point3, Projective3};
|
||||
|
||||
/// A 3D perspective projection stored as a homogeneous 4x4 matrix.
|
||||
#[repr(C)]
|
||||
pub struct Perspective3<T: Scalar> {
|
||||
matrix: Matrix4<T>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user