squants.motion

Velocity

case class Velocity(distance: Distance, time: Time) extends Quantity[Velocity] with TimeDerivative[Distance] with TimeIntegral[Acceleration] with Product with Serializable

Represents a quantify of Velocity

distance

The distance traveled

time

The travel time

Since

0.1

Linear Supertypes
Product, Equals, TimeIntegral[Acceleration], TimeDerivative[Distance], Quantity[Velocity], Serializable, Serializable, Ordered[Velocity], Comparable[Velocity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Velocity
  2. Product
  3. Equals
  4. TimeIntegral
  5. TimeDerivative
  6. Quantity
  7. Serializable
  8. Serializable
  9. Ordered
  10. Comparable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Velocity(distance: Distance, time: Time)

    distance

    The distance traveled

    time

    The travel time

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def %(that: Velocity): Double

    Definition Classes
    Quantity
  5. def %(that: Double): Velocity

    Definition Classes
    Quantity
  6. def *(that: Mass): Momentum

  7. def *(that: time.Time): Distance

    Returns the amount of change in the integral that will happen over the given Time

    Returns the amount of change in the integral that will happen over the given Time

    that

    Time

    returns

    Definition Classes
    TimeDerivative
  8. def *(that: Double): Velocity

    Definition Classes
    Quantity
  9. def +(that: Velocity): Velocity

    Definition Classes
    Quantity
  10. def +-(that: Velocity): QuantityRange[Velocity]

    Definition Classes
    Quantity
  11. def -(that: Velocity): Velocity

    Definition Classes
    Quantity
  12. def /(that: Acceleration): Time

    Returns the amount time required to achieve the given change in the Derivative

    Returns the amount time required to achieve the given change in the Derivative

    that

    Derivative

    returns

    Definition Classes
    VelocityTimeIntegral
  13. def /(that: Time): Acceleration

    Returns the Time Derivative which represents a change of the underlying quantity equal to this quantity over the given time.

    Returns the Time Derivative which represents a change of the underlying quantity equal to this quantity over the given time.

    that

    Time

    returns

    Definition Classes
    VelocityTimeIntegral
  14. def /(that: Velocity): Double

    Definition Classes
    Quantity
  15. def /(that: Double): Velocity

    Definition Classes
    Quantity
  16. def /%(that: Velocity): (Double, Velocity)

    Definition Classes
    Quantity
  17. def /%(that: Double): (Velocity, Velocity)

    Definition Classes
    Quantity
  18. def <(that: Velocity): Boolean

    Definition Classes
    Ordered
  19. def <=(that: Velocity): Boolean

    Definition Classes
    Ordered
  20. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  22. def =~(that: Velocity)(implicit tolerance: Velocity): Boolean

    approx

    approx

    Definition Classes
    Quantity
  23. def >(that: Velocity): Boolean

    Definition Classes
    Ordered
  24. def >=(that: Velocity): Boolean

    Definition Classes
    Ordered
  25. def abs: Velocity

    Returns the absolute value of this Quantity

    Returns the absolute value of this Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  26. def approx(that: Velocity)(implicit tolerance: Velocity): Boolean

    Returns boolean result of approximate equality comparison

    Returns boolean result of approximate equality comparison

    that

    Quantity

    tolerance

    Quantity

    returns

    Definition Classes
    Quantity
  27. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  28. def change: Distance

    Definition Classes
    VelocityTimeDerivative
  29. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def compare(that: Velocity): Int

    Implements Ordered.

    Implements Ordered.compare

    that

    Quantity

    returns

    Int

    Definition Classes
    Quantity → Ordered
  31. def compareTo(that: Velocity): Int

    Definition Classes
    Ordered → Comparable
  32. val distance: Distance

    The distance traveled

  33. def divide(that: Velocity): Double

    Divide this quantity by a like quantity

    Divide this quantity by a like quantity

    that

    Quantity

    returns

    Double

    Definition Classes
    Quantity
  34. def divide(that: Double): Velocity

    Divide this quantity by some number

    Divide this quantity by some number

    that

    Double

    returns

    Quantity

    Definition Classes
    Quantity
  35. def divideAndRemainder(that: Velocity): (Double, Velocity)

    Returns a Pair that includes the result of divideToInteger and remainder

    Returns a Pair that includes the result of divideToInteger and remainder

    that

    Quantity

    returns

    (Double, Quantity)

    Definition Classes
    Quantity
  36. def divideAndRemainder(that: Double): (Velocity, Velocity)

    Returns a Pair that includes the result of divideToInteger and remainder

    Returns a Pair that includes the result of divideToInteger and remainder

    that

    Double

    returns

    (Quantity, Quantity)

    Definition Classes
    Quantity
  37. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. def equals(that: Any): Boolean

    Override of equals method

    Override of equals method

    that

    must be of matching value and unit

    returns

    Definition Classes
    Quantity → AnyRef → Any
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  41. def hashCode(): Int

    Override of hashCode

    Override of hashCode

    returns

    Definition Classes
    Quantity → AnyRef → Any
  42. def in(unit: UnitOfMeasure[Velocity]): Velocity

    Returns an equivalent Quantity boxed with the supplied Unit

    Returns an equivalent Quantity boxed with the supplied Unit

    This is really only useful for Quantity classes that box at the UOM level e.g. Temperature and currently Time

    unit

    UnitOfMeasure[A]

    returns

    Quantity

    Definition Classes
    Quantity
  43. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  44. def max(that: Velocity): Velocity

    Returns the max of this and that Quantity

    Returns the max of this and that Quantity

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  45. def min(that: Velocity): Velocity

    Returns the min of this and that Quantity

    Returns the min of this and that Quantity

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  46. def minus(that: Velocity): Velocity

    Subtract two like quantities

    Subtract two like quantities

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. def negate: Velocity

    Returns the negative value of this Quantity

    Returns the negative value of this Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  49. def notWithin(range: QuantityRange[Velocity]): Boolean

    Returns true if this value is not within (contains) the range

    Returns true if this value is not within (contains) the range

    range

    QuantityRange

    returns

    Boolean

    Definition Classes
    Quantity
  50. final def notify(): Unit

    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  52. def plus(that: Velocity): Velocity

    Add two like quantities

    Add two like quantities

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  53. def plusOrMinus(that: Velocity): QuantityRange[Velocity]

    Returns a QuantityRange representing the range for this value +- that

    Returns a QuantityRange representing the range for this value +- that

    that

    Quantity

    returns

    QuantityRange

    Definition Classes
    Quantity
  54. def remainder(that: Velocity): Double

    Returns the remainder of a division by a like quantity

    Returns the remainder of a division by a like quantity

    that

    Quantity

    returns

    Double

    Definition Classes
    Quantity
  55. def remainder(that: Double): Velocity

    Returns the remainder of a division by a number

    Returns the remainder of a division by a number

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  57. val time: Time

    The travel time

    The travel time

    Definition Classes
    VelocityTimeDerivative
  58. def times(that: Double): Velocity

    Multiply this quantity by some number

    Multiply this quantity by some number

    that

    Double

    returns

    Quantity

    Definition Classes
    Quantity
  59. def to(unit: VelocityUnit): Double

  60. def to(unit: UnitOfMeasure[Velocity]): Double

    Returns a Double representing the quantity in terms of the supplied unit

    Returns a Double representing the quantity in terms of the supplied unit

    val d = Feet(3)
    (d to Inches) should be(36)
    unit

    UnitOfMeasure[A]

    returns

    Double

    Definition Classes
    Quantity
  61. def to(that: Velocity): QuantityRange[Velocity]

    Returns a QuantityRange that goes from this to that

    Returns a QuantityRange that goes from this to that

    that

    Quantity

    returns

    QuantityRange

    Definition Classes
    Quantity
  62. def toFeetPerSecond: Double

  63. def toInternationalMilesPerHour: Double

  64. def toKilometersPerHour: Double

  65. def toKnots: Double

  66. def toMetersPerSeconds: Double

  67. def toString(unit: VelocityUnit): String

  68. def toString(unit: UnitOfMeasure[Velocity]): String

    Returns a string representing the quantity's value in the given unit

    Returns a string representing the quantity's value in the given unit

    unit

    UnitOfMeasure[A] with UnitConverter

    returns

    String

    Definition Classes
    Quantity
  69. def toString(): String

    Returns a string representing the quantity's value in valueUnits

    Returns a string representing the quantity's value in valueUnits

    returns

    String

    Definition Classes
    Quantity → AnyRef → Any
  70. def toUsMilesPerHour: Double

  71. def unary_-(): Velocity

    Definition Classes
    Quantity
  72. def value: Double

    The value of the quantity given the valueUnits

    The value of the quantity given the valueUnits

    returns

    Double

    Definition Classes
    VelocityQuantity
  73. def valueUnit: MetersPerSecond.type

    The Unit of Measure used for the quantity's underlying value

    The Unit of Measure used for the quantity's underlying value

    returns

    UnitOfMeasure[A]

    Definition Classes
    VelocityQuantity
  74. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. def within(range: QuantityRange[Velocity]): Boolean

    Returns true if this value is within (contains) the range

    Returns true if this value is within (contains) the range

    range

    QuantityRange

    returns

    Boolean

    Definition Classes
    Quantity
  78. def ~=(that: Velocity)(implicit tolerance: Velocity): Boolean

    approx - more natural operator but has low precedence and requires parens

    approx - more natural operator but has low precedence and requires parens

    Definition Classes
    Quantity

Inherited from Product

Inherited from Equals

Inherited from TimeIntegral[Acceleration]

Inherited from TimeDerivative[Distance]

Inherited from Quantity[Velocity]

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[Velocity]

Inherited from Comparable[Velocity]

Inherited from AnyRef

Inherited from Any

Ungrouped