glam_det 2.0.0

A simple and fast 3D math library for games and graphics.
Documentation
// Copyright (C) 2020-2025 glam-det authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod common_types;
pub(super) mod macros;
pub mod num_traits;
pub use num_traits::*;

mod bool32x4_;
mod f32_;
mod f32x4_;
mod f64_;
mod i16x8_;
mod i32_;
mod i32x4_;
mod u32x4_;

pub use bool32x4_::bool32x4;
pub use f32x4_::f32x4;
pub use i16x8_::i16x8;
pub use i32x4_::i32x4;
pub use u32x4_::u32x4;

mod const_test_layout {
    const_assert_eq!(16, core::mem::align_of::<super::f32x4>());
    const_assert_eq!(16, core::mem::size_of::<super::f32x4>());

    const_assert_eq!(16, core::mem::align_of::<super::bool32x4>());
    const_assert_eq!(16, core::mem::size_of::<super::bool32x4>());

    const_assert_eq!(16, core::mem::align_of::<super::u32x4>());
    const_assert_eq!(16, core::mem::size_of::<super::u32x4>());

    const_assert_eq!(16, core::mem::align_of::<super::i32x4>());
    const_assert_eq!(16, core::mem::size_of::<super::i32x4>());

    const_assert_eq!(16, core::mem::align_of::<super::i16x8>());
    const_assert_eq!(16, core::mem::size_of::<super::i16x8>());
}