[−][src]Struct rustbatch::math::curve::Curve
More about Curve on wikipedia. Its mainly used for interpolation.
Implementations
impl Curve
[src]
pub const NONE: Self
[src]
pub const LINEAR_INCREASING: Self
[src]
pub const LINEAR_DECREASING: Self
[src]
pub fn new(
a: (f32, f32),
a_handle: (f32, f32),
b: (f32, f32),
b_handle: (f32, f32)
) -> Self
[src]
a: (f32, f32),
a_handle: (f32, f32),
b: (f32, f32),
b_handle: (f32, f32)
) -> Self
pub fn get_point(&self, t: f32) -> Vect
[src]
only method fo Cure project t to position along the curve. There is lathery nothing else you can do with this thing anyway. If you use Curve::NONE This function always returns Vect::UP as optimization in case this Curve is just placeholder
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnwindSafe for Curve
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,