pub enum CollectionDirectionalSpeedDiagonalBehaviorV1 {
Preserve,
Normalize,
}Expand description
Closed diagonal-input handling declaration.
Variants§
Preserve
Preserve the authored diagonal magnitude. The declared speed fields
remain unit-input/base targets; a coordinate c contributes gain
g(c) = hypot(c) to the later speed expectation.
Normalize
Normalize diagonal input magnitude before policy comparison. The
later speed gain for a coordinate is g(c) = 1.
Trait Implementations§
Source§impl Clone for CollectionDirectionalSpeedDiagonalBehaviorV1
impl Clone for CollectionDirectionalSpeedDiagonalBehaviorV1
Source§fn clone(&self) -> CollectionDirectionalSpeedDiagonalBehaviorV1
fn clone(&self) -> CollectionDirectionalSpeedDiagonalBehaviorV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CollectionDirectionalSpeedDiagonalBehaviorV1
Source§impl<'de> Deserialize<'de> for CollectionDirectionalSpeedDiagonalBehaviorV1
impl<'de> Deserialize<'de> for CollectionDirectionalSpeedDiagonalBehaviorV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CollectionDirectionalSpeedDiagonalBehaviorV1
impl StructuralPartialEq for CollectionDirectionalSpeedDiagonalBehaviorV1
Auto Trait Implementations§
impl Freeze for CollectionDirectionalSpeedDiagonalBehaviorV1
impl RefUnwindSafe for CollectionDirectionalSpeedDiagonalBehaviorV1
impl Send for CollectionDirectionalSpeedDiagonalBehaviorV1
impl Sync for CollectionDirectionalSpeedDiagonalBehaviorV1
impl Unpin for CollectionDirectionalSpeedDiagonalBehaviorV1
impl UnsafeUnpin for CollectionDirectionalSpeedDiagonalBehaviorV1
impl UnwindSafe for CollectionDirectionalSpeedDiagonalBehaviorV1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more