Class/Object

io.github.karols.units

Vector2U

Related Docs: object Vector2U | package units

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(i: Float): Vector2U[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a value with a unit.

    Multiply by a value with a unit.

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

    Permalink

    Multiply by a value with a unit.

    Multiply by a value with a unit.

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

    Permalink

    Dot product.

    Dot product.

    Annotations
    @inline()
  10. 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]

    Permalink

    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()
  11. def +(i: Vector2U[U]): Vector2U[U]

    Permalink

    Add a value with the same unit.

    Add a value with the same unit.

    Annotations
    @inline()
  12. 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]

    Permalink

    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()
  13. def -(i: Vector2U[U]): Vector2U[U]

    Permalink

    Subtract a value with the same unit.

    Subtract a value with the same unit.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a value with a unit.

    Divide by a value with a unit.

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

    Permalink

    Divide by a value with a unit.

    Divide by a value with a unit.

    Annotations
    @inline()
  20. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def abs: DoubleU[U]

    Permalink

    Euclidean length of this vector

    Euclidean length of this vector

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

    Permalink

    Square of length of this vector

    Square of length of this vector

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

    Permalink
    Definition Classes
    Any
  24. def clone(): AnyRef

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

    Permalink

    Convert to another unit.

    Convert to another unit.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

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

    Permalink
    Definition Classes
    AnyRef
  33. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  36. def length: DoubleU[U]

    Permalink

    Euclidean length of this vector

    Euclidean length of this vector

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

    Permalink

    Square of length of this vector

    Square of length of this vector

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

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

    Permalink
    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

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

    Permalink
    Annotations
    @inline()
  43. 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]]]]

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

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

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

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

    Permalink

    Negate this value.

    Negate this value.

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

    Permalink

    A vector with the same direction and length 1

    A vector with the same direction and length 1

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

    Permalink

    Return the value as a pair of Doubles.

    Return the value as a pair of Doubles.

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

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

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

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

    Permalink
  59. val y: DoubleU[U]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped