cvmath 0.0.7

Computer Graphics Vector Math Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

/// Interval type.
#[derive(Copy, Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[repr(C)]
pub struct Interval<T> {
	pub min: T,
	pub max: T,
}

/// Interval constructor.
#[allow(non_snake_case)]
#[inline]
pub const fn Interval<T>(min: T, max: T) -> Interval<T> {
	Interval { min, max }
}