Struct rhusics_core::Velocity [] [src]

pub struct Velocity<L, A> { /* fields omitted */ }

Velocity

Type parameters:

  • L: Linear velocity, usually Vector2 or Vector3
  • A: Angular velocity, usually Scalar or Vector3

Methods

impl<L, A> Velocity<L, A> where
    L: Zero,
    A: Clone + Zero
[src]

[src]

Create new velocity object, with both linear and angular velocity

[src]

Create new velocity object with only linear velocity

[src]

Set linear velocity

[src]

Get linear velocity

[src]

Set angular velocity

[src]

Get angular velocity

[src]

Apply velocity to pose.

Parameters:

  • pose: Pose to apply the velocity to
  • dt: Time step

Type parameters:

  • P: Positional quantity, usually Point2 or Point3
  • R: Rotational quantity, usually Basis2 or Quaternion

[src]

Apply linear velocity to a positional quantity

Parameters:

  • linear: Positional value
  • dt: Time step

Type parameters:

  • P: Positional quantity, usually Point2 or Point3

[src]

Apply angular velocity to a rotational quantity

Parameters:

  • rotation: Rotational value
  • dt: Time step

Type parameters:

  • R: Rotational quantity, usually Basis2 or Quaternion

Trait Implementations

impl<L: Debug, A: Debug> Debug for Velocity<L, A>
[src]

[src]

Formats the value using the given formatter.

impl<L: Clone, A: Clone> Clone for Velocity<L, A>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<L: PartialEq, A: PartialEq> PartialEq for Velocity<L, A>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<L, A> Default for Velocity<L, A> where
    L: Zero,
    A: Clone + Zero
[src]

[src]

Returns the "default value" for a type. Read more