edu.utexas.cs.sdao.reyes.core

Vector3

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

A vector in 3-space.

x

the first coordinate

y

the second coordinate

z

the third coordinate

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

    x

    the first coordinate

    y

    the second coordinate

    z

    the third 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): Vector3

  5. def *(r: Vector3): Vector3

  6. def +(r: Float): Vector3

  7. def +(r: Vector3): Vector3

  8. def -(r: Float): Vector3

  9. def -(r: Vector3): Vector3

  10. def /(r: Float): Vector3

  11. def /(r: Vector3): Vector3

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

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

    Definition Classes
    Any
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def cross(r: Vector3): Vector3

    Performs the cross (vector) product with another vector.

    Performs the cross (vector) product with another vector. Note: this operation is not commutative.

    r

    the right-hand vector

    returns

    the cross product

  17. def dist(r: Vector3): Float

    The distance from this vector to another vector.

    The distance from this vector to another vector.

    r

    the other vector

    returns

    the distance

  18. def dist2D(r: Vector3): Float

    Returns the 2-D distance between this vector and another vector by discarding the Z-coordinate.

    Returns the 2-D distance between this vector and another vector by discarding the Z-coordinate.

    r

    the other vector

    returns

    the 2-D distance

  19. def distSquared(r: Vector3): Float

  20. def dot(r: Vector3): 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

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

    Definition Classes
    AnyRef
  22. def finalize(): Unit

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

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

    Definition Classes
    Any
  25. def length: Float

    The length of the vector.

    The length of the vector.

    returns

    the length

  26. def lengthSquared: Float

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

    Definition Classes
    AnyRef
  28. def normalize: Vector3

    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. def reflect(normal: Vector3): Vector3

    Reflects the vector over the specified normal.

    Reflects the vector over the specified normal.

    normal

    the normal to reflect over

    returns

    the reflected vector

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toVector2: Vector2

    Returns the vector (x/z, y/z), assuming that (x, y, z) is a homogenous vector.

    Returns the vector (x/z, y/z), assuming that (x, y, z) is a homogenous vector.

    returns

    a Vector2 containing the (x/z, y/z) components

  34. def unary_-: Vector3

  35. final def wait(): Unit

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

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

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

    the first coordinate

  39. val y: Float

    the second coordinate

  40. val z: Float

    the third coordinate

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped