2021-08-08 18:59:40 +08:00
|
|
|
use na::{DefaultAllocator, RealNumber, Scalar, U3};
|
2018-09-20 16:50:34 +08:00
|
|
|
|
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};
|
2018-09-20 16:50:34 +08:00
|
|
|
|
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
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>,
|
|
|
|
{
|
2018-09-20 16:50:34 +08:00
|
|
|
unimplemented!()
|
|
|
|
}
|