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

Source
Vector3.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vector3
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Vector3(x: Float, y: Float, z: Float)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *(scalar: Float): Vector3

    Operator for vector scaling, treating Vector3 objects as actual mathematical vectors.

    Operator for vector scaling, treating Vector3 objects as actual mathematical vectors. The application of this overload is "vector * scalar" exclusively. "scalar * vector" is invalid.

    scalar

    the value to multiply this vector

    returns

    a new Vector3 object

  4. def **(v: Vector3): Vector3

    Operator for multiplication of vector elements.

    Operator for multiplication of vector elements. This applies a scaling to each element of one vector by the same element of the other. The application of this overload is "vector ** v".

    v

    the per-element scalars as a Vector3 object

    returns

    a new Vector3 object

  5. def +(vec: Vector3): Vector3

    Operator for vector addition, treating Vector3 objects as actual mathematical vectors.

    Operator for vector addition, treating Vector3 objects as actual mathematical vectors. The application of this definition is "vector1 + vector2."

    vec

    the other Vector3 object

    returns

    a new Vector3 object with the summed values

  6. def -(vec: Vector3): Vector3

    Operator for vector subtraction, treating Vector3 objects as actual mathematical vectors.

    Operator for vector subtraction, treating Vector3 objects as actual mathematical vectors. The application of this definition is "vector1 - vector2."

    vec

    the other Vector3 object

    returns

    a new Vector3 object with the difference values

  7. def /(scalar: Float): Vector3

    Operator for vector scaling, treating Vector3 objects as actual mathematical vectors.

    Operator for vector scaling, treating Vector3 objects as actual mathematical vectors. The application of this overload is "vector / scalar" exclusively. "scalar / vector" is invalid. Due to rounding, may not be perfectly equivalent to "vector * ( 1 / scalar )".

    scalar

    the value to divide this vector

    returns

    a new Vector3 object

  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def Rx(ang: Float): Vector3

    Perform the x-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees.

    Perform the x-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees. For chaining rotations.

    ang

    a rotation angle

    returns

    the rotated vector

    See also

    Vector3.Rx

  10. def Ry(ang: Float): Vector3

    Perform the y-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees.

    Perform the y-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees. For chaining rotations.

    ang

    a rotation angle

    returns

    the rotated vector

    See also

    Vector3.Ry

  11. def Rz(ang: Float): Vector3

    Perform the z-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees.

    Perform the z-axis rotation of this Vector3 element where the angle of rotation is assumed in degrees. For chaining rotations.

    ang

    a rotation angle

    returns

    the rotated vector

    See also

    Vector3.Rz

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. val x: Float
  27. def xy: Vector3

    Operator for returning the ground-planar coordinates and ignoring the perpendicular distance from the world floor.

    Operator for returning the ground-planar coordinates and ignoring the perpendicular distance from the world floor. The application of this definition is "vector.xy" or "vector xy."

    returns

    a new Vector3 object with only two of the components of the original

  28. val y: Float
  29. val z: Float

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped