io.github.karols.units

Vector2U

case class Vector2U[U <: MUnit](x: DoubleU[U], y: DoubleU[U]) extends Product with Serializable

A two-dimensional vector with a unit

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Vector2U
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Vector2U(x: DoubleU[U], y: DoubleU[U])

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 *(i: Float): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  5. def *(i: Byte): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  6. def *(i: Short): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  7. def *(i: Int): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  8. def *[V <: MUnit](i: DoubleU[V]): Vector2U[U.Mul[V]]

    Multiply by a value with a unit.

    Multiply by a value with a unit.

    Annotations
    @inline()
  9. def *[V <: MUnit](i: IntU[V]): Vector2U[U.Mul[V]]

    Multiply by a value with a unit.

    Multiply by a value with a unit.

    Annotations
    @inline()
  10. def *[V <: MUnit](i: Vector2U[V]): DoubleU[U.Mul[V]]

    Dot product.

    Dot product.

    Annotations
    @inline()
  11. def +[V <: MUnit, W <: MUnit](i: Vector2U[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Vector2U[W]

    Add a value with a different unit, coercing to the smaller of them.

    Add a value with a different unit, coercing to the smaller of them.

    Annotations
    @inline()
  12. def +(i: Vector2U[U]): Vector2U[U]

    Add a value with the same unit.

    Add a value with the same unit.

    Annotations
    @inline()
  13. def -[V <: MUnit, W <: MUnit](i: Vector2U[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Vector2U[W]

    Subract a value with a different unit, coercing to the smaller of them.

    Subract a value with a different unit, coercing to the smaller of them.

    Annotations
    @inline()
  14. def -(i: Vector2U[U]): Vector2U[U]

    Subtract a value with the same unit.

    Subtract a value with the same unit.

    Annotations
    @inline()
  15. def /(i: Float): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  16. def /(i: Byte): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  17. def /(i: Short): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  18. def /(i: Int): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  19. def /[V <: MUnit](i: DoubleU[V]): Vector2U[U.Mul[/.V.Invert]]

    Divide by a value with a unit.

    Divide by a value with a unit.

    Annotations
    @inline()
  20. def /[V <: MUnit](i: IntU[V]): Vector2U[U.Mul[/.V.Invert]]

    Divide by a value with a unit.

    Divide by a value with a unit.

    Annotations
    @inline()
  21. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  23. def abs: DoubleU[U]

    Euclidean length of this vector

    Euclidean length of this vector

    Annotations
    @inline()
  24. def absSq: DoubleU[U.Mul[U]]

    Square of length of this vector

    Square of length of this vector

    Annotations
    @inline()
  25. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  26. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def convert[V <: MUnit](implicit ev: DoubleRatio[U, V]): Vector2U[V]

    Convert to another unit.

    Convert to another unit.

    Annotations
    @inline()
  28. def dividedBy(i: Float): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  29. def dividedBy(i: Double): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  30. def dividedBy(i: Byte): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  31. def dividedBy(i: Short): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  32. def dividedBy(i: Int): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  33. def dividedBy(i: Long): Vector2U[U]

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  34. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def length: DoubleU[U]

    Euclidean length of this vector

    Euclidean length of this vector

    Annotations
    @inline()
  39. def lengthSq: DoubleU[U.Mul[U]]

    Square of length of this vector

    Square of length of this vector

    Annotations
    @inline()
  40. def mkString(implicit name: UnitName[U]): String

    Annotations
    @inline()
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

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

    Definition Classes
    AnyRef
  44. def represent[V <: MUnit, W <: MUnit](implicit ev: DoubleRatio[V, W]): Vector2U[MUnit.Mul.Mul[W]]

    Annotations
    @inline()
  45. def representAll[V <: TUnitPowerPair, W <: MUnit](implicit ev: PowerDoubleRatio[representAll.V.UnitName, representAll.V.Power, W, U.Get[representAll.V.UnitName]]): Vector2U[MUnit.Mul.Mul[representAll.W.ToPower[U.Get[representAll.V.UnitName]]]]

    Annotations
    @inline()
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def times(i: Float): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  48. def times(i: Double): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  49. def times(i: Byte): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  50. def times(i: Short): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  51. def times(i: Int): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  52. def times(i: Long): Vector2U[U]

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  53. def toString(): String

    Definition Classes
    Vector2U → AnyRef → Any
    Annotations
    @inline()
  54. def unary_-: Vector2U[U]

    Negate this value.

    Negate this value.

    Annotations
    @inline()
  55. def unit: Vector2U[_1]

    A vector with the same direction and length 1

    A vector with the same direction and length 1

    Annotations
    @inline()
  56. def value: (Double, Double)

    Return the value as a pair of Doubles.

    Return the value as a pair of Doubles.

    Annotations
    @inline()
  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. val x: DoubleU[U]

  61. val y: DoubleU[U]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped