nalgebra/nalgebra-glm/src/gtc/round.rs

109 lines
2.1 KiB
Rust
Raw Normal View History

2021-08-08 18:59:40 +08:00
use na::{DefaultAllocator, RealNumber, Scalar, U3};
2019-03-23 21:29:07 +08:00
use crate::aliases::TVec;
2021-04-11 17:00:38 +08:00
use crate::traits::{Alloc, Dimension, Number};
pub fn ceilMultiple<T>(v: T, Multiple: T) -> T {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn ceilMultiple2<T: Scalar, const D: usize>(v: &TVec<T, D>, Multiple: &TVec<T, D>) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn ceilPowerOfTwo<IU>(v: IU) -> IU {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn ceilPowerOfTwo2<T: Scalar, const D: usize>(v: &TVec<T, D>) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn floorMultiple<T>(v: T, Multiple: T) -> T {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn floorMultiple2<T: Scalar, const D: usize>(
v: &TVec<T, D>,
Multiple: &TVec<T, D>,
) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn floorPowerOfTwo<IU>(v: IU) -> IU {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn floorPowerOfTwo2<T: Scalar, const D: usize>(v: &TVec<T, D>) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn isMultiple<IU>(v: IU, Multiple: IU) -> bool {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn isMultiple2<T: Scalar, const D: usize>(v: &TVec<T, D>, Multiple: T) -> TVec<bool, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn isMultiple3<T: Scalar, const D: usize>(
v: &TVec<T, D>,
Multiple: &TVec<T, D>,
) -> TVec<bool, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn isPowerOfTwo2<IU>(v: IU) -> bool {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn isPowerOfTwo<T: Scalar, const D: usize>(v: &TVec<T, D>) -> TVec<bool, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn roundMultiple<T>(v: T, Multiple: T) -> T {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn roundMultiple2<T: Scalar, const D: usize>(
v: &TVec<T, D>,
Multiple: &TVec<T, D>,
) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}
pub fn roundPowerOfTwo<IU>(v: IU) -> IU {
unimplemented!()
}
2021-04-11 17:00:38 +08:00
pub fn roundPowerOfTwo2<T: Scalar, const D: usize>(v: &TVec<T, D>) -> TVec<T, D>
where
DefaultAllocator: Alloc<T, D>,
{
unimplemented!()
}