2019-03-25 18:21:41 +08:00
|
|
|
use na::{Scalar, RealField, U3, DefaultAllocator};
|
2018-09-20 16:50:34 +08:00
|
|
|
|
2019-03-23 21:29:07 +08:00
|
|
|
use crate::traits::{Number, Alloc, Dimension};
|
|
|
|
use crate::aliases::TVec;
|
2018-09-20 16:50:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
pub fn ceilMultiple<T>(v: T, Multiple: T) -> T {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn ceilMultiple2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>, Multiple: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn ceilPowerOfTwo<IU>(v: IU) -> IU {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn ceilPowerOfTwo2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn floorMultiple<T>(v: T, Multiple: T) -> T {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn floorMultiple2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>, Multiple: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn floorPowerOfTwo<IU>(v: IU) -> IU {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn floorPowerOfTwo2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn isMultiple<IU>(v: IU, Multiple: IU) -> bool {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn isMultiple2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>,Multiple: N) -> TVec<bool, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn isMultiple3<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>, Multiple: &TVec<N, D>) -> TVec<bool, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn isPowerOfTwo2<IU>(v: IU) -> bool {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn isPowerOfTwo<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>) -> TVec<bool, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn roundMultiple<T>(v: T, Multiple: T) -> T {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn roundMultiple2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>, Multiple: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn roundPowerOfTwo<IU>(v: IU) -> IU {
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
2019-12-06 06:54:17 +08:00
|
|
|
pub fn roundPowerOfTwo2<N: Scalar + Clone, D: Dimension>(v: &TVec<N, D>) -> TVec<N, D>
|
2018-09-20 16:50:34 +08:00
|
|
|
where DefaultAllocator: Alloc<N, D> {
|
|
|
|
unimplemented!()
|
|
|
|
}
|