mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-28 02:12:08 +00:00
Make Vector representation transparent
This commit is contained in:
parent
b1a264af95
commit
410d359e71
@ -14,7 +14,7 @@ use super::{
|
|||||||
/// The dimensionality of the vector is defined by the const generic `D`
|
/// The dimensionality of the vector is defined by the const generic `D`
|
||||||
/// parameter.
|
/// parameter.
|
||||||
#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)]
|
#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)]
|
||||||
#[repr(C)]
|
#[repr(transparent)]
|
||||||
pub struct Vector<const D: usize> {
|
pub struct Vector<const D: usize> {
|
||||||
/// # The components of the vector
|
/// # The components of the vector
|
||||||
pub components: [Scalar; D],
|
pub components: [Scalar; D],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user