[#2] Added Licensing.

I decided on the Apache-2.0 license and have stamped all the files to
now point to that license.
This commit is contained in:
2025-07-29 12:38:11 -04:00
parent 59b1e2eea1
commit 6cdd077577
30 changed files with 349 additions and 7 deletions

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
/// Primitive types that have upper and lower bounds.
pub trait Bounded
{

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::{f32, f64};

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use crate::number::Number;
use crate::one::One;
use crate::zero::Zero;

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
//! A mathematical library.
//! License: Proprietary
//!

View File

@ -0,0 +1,3 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
/// A macro that will define a binary operation for
/// a structure and its components.
macro_rules! binary_operator_impl

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
//! This module defines the 2x2, 3x3, and 4x4 Matrix structures.
//use std::ops::{Add, Sub, Mul, Div, Rem, Neg};

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::cmp::{PartialEq, PartialOrd};
use std::fmt::{Debug, Display};
use std::mem::size_of;

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::ops::Mul;
/// Defines a multiplicative identity element for `Self`.

View File

@ -0,0 +1,3 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.

View File

@ -0,0 +1,3 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
//! This module defines the [Quaternion][1] and
//! [DualQuaternion][2] structures.
//!

View File

@ -0,0 +1,3 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::num::FpCategory;
use std::ops::Neg;

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
//! This section of the library handles the branch of mathematics
//! that studies relationships involving lengths and angles of triangles.

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::ops::{Add, Sub, Mul, Div, Rem, Neg};
use std::ops::{AddAssign, SubAssign, MulAssign, DivAssign, RemAssign};

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::ops::{Add, Sub, Mul, Div, Rem, Neg};
use std::ops::{AddAssign, SubAssign, MulAssign, DivAssign, RemAssign};

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use binding::{CDouble, CFloat};
use crate::real::Real;

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
//! This module defines 2, 3, and 4 component [Vector][1] structures.
//!
//! [1]: https://en.wikipedia.org/wiki/Vector_(mathematics_and_physics)

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use super::number::Number;

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Sealed with Magistamp.
use std::ops::Add;
/// Defines an additive identity element for `Self`.