final case class Vector3(x: Float, y: Float, z: Float) extends Product with Serializable
- Source
- Vector3.scala
- Alphabetic
- By Inheritance
- Vector3
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Vector3(x: Float, y: Float, z: Float)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- 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
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val x: Float
- 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
- val y: Float
- val z: Float