This companion object of class `Velocity` exists primarily to provide convenience methods for creating new instances of Velocity.
Attributes
- Companion
- class
- Source
- Velocity.scala
- Graph
-
- Supertypes
- Self type
-
Velocity.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete methods
Creates a Velocity with the given dx and dy.
Creates a Velocity whose dx and dy equal the x and y of the given smile.modeling.Pos, respectively.
Creates a Velocity whose dx and dy equal the x and y of the given smile.modeling.Pos, respectively.
Attributes
- Source
- Velocity.scala
Returns the average of all the given velocities. If the given collection is empty, returns smile.modeling.Velocity.Still.
Returns the average of all the given velocities. If the given collection is empty, returns smile.modeling.Velocity.Still.
Attributes
- Source
- Velocity.scala
Returns the smile.modeling.Velocity from one smile.modeling.Pos to another. Its direction points from from towards to, and its speed equals the distance between them.
Returns the smile.modeling.Velocity from one smile.modeling.Pos to another. Its direction points from from towards to, and its speed equals the distance between them.
Attributes
- Source
- Velocity.scala
Returns the sum of all the given velocities. If the given collection is empty, returns smile.modeling.Velocity.Still.
Returns the sum of all the given velocities. If the given collection is empty, returns smile.modeling.Velocity.Still.
Attributes
- Source
- Velocity.scala
Concrete fields
a zero-speed smile.modeling.Velocity with a direction of `NoDirection`
a zero-speed smile.modeling.Velocity with a direction of `NoDirection`
Attributes
- Source
- Velocity.scala
Givens
Givens
Attributes
- Source
- Velocity.scala
