edu.utexas.cs.sdao.reyes.core

Vector2

case class Vector2(x: Float, y: Float) extends Product with Serializable

A vector in 2-space.

x

the first coordinate

y

the second coordinate

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Vector2
  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 Vector2(x: Float, y: Float)

    x

    the first coordinate

    y

    the second coordinate

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 *(r: Float): Vector2

  5. def *(r: Vector2): Vector2

  6. def +(r: Float): Vector2

  7. def +(r: Vector2): Vector2

  8. def -(r: Float): Vector2

  9. def -(r: Vector2): Vector2

  10. def /(r: Float): Vector2

  11. def /(r: Vector2): Vector2

  12. def <(r: Vector2): Boolean

  13. def <=(r: Vector2): Boolean

  14. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  16. def >(r: Vector2): Boolean

  17. def >=(r: Vector2): Boolean

  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def dist(r: Vector2): Float

    The distance from this vector to another vector.

    The distance from this vector to another vector.

    r

    the other vector

    returns

    the distance

  21. def dot(r: Vector2): Float

    Performs the dot (scalar) product with another vector.

    Performs the dot (scalar) product with another vector.

    r

    the right-hand vector

    returns

    the dot product

  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def finalize(): Unit

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

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

    Definition Classes
    Any
  26. def length: Float

    The length of the vector.

    The length of the vector.

    returns

    the length

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def normalize: Vector2

    Normalizes this vector to produce a new vector with the same direction and a length of 1.

    Normalizes this vector to produce a new vector with the same direction and a length of 1.

    returns

    a unit vector

  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def unary_-: Vector2

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. val x: Float

    the first coordinate

  37. val y: Float

    the second coordinate

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped