rinia 0.0.8

Portable scalar abstractions for game and simulation math.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Vec4, VectorScalar, impl_bytemuck_pod, vector::macros::impl_vector_traits};

impl<T: VectorScalar> Vec4<T> {
    /// Creates a new vector with the given components.
    #[inline]
    pub const fn new(x: T, y: T, z: T, w: T) -> Self {
        Self { x, y, z, w }
    }
}

impl_vector_traits!(Vec4<T: VectorScalar>, 4);
impl_bytemuck_pod!(Vec4<T: VectorScalar>);