Struct k::Range [−][src]
pub struct Range<T: Real> { pub min: T, pub max: T, }
min/max range to check the joint position
Fields
min: T
max: T
Methods
impl<T> Range<T> where
T: Real,
[src]
impl<T> Range<T> where
T: Real,
pub fn new(min: T, max: T) -> Self
[src]
pub fn new(min: T, max: T) -> Self
pub fn is_valid(&self, val: T) -> bool
[src]
pub fn is_valid(&self, val: T) -> bool
Check if the value is in the range
true means it is OK.
Trait Implementations
impl<T: Copy + Real> Copy for Range<T>
[src]
impl<T: Copy + Real> Copy for Range<T>
impl<T: Debug + Real> Debug for Range<T>
[src]
impl<T: Debug + Real> Debug for Range<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone + Real> Clone for Range<T>
[src]
impl<T: Clone + Real> Clone for Range<T>