Class/Object

net.psforever.types

Vector3

Related Docs: object Vector3 | package types

Permalink

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

Source
Vector3.scala
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
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    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 *(scalar: Float): Vector3

    Permalink

    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 +(vec: Vector3): Vector3

    Permalink

    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

  5. def -(vec: Vector3): Vector3

    Permalink

    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

  6. def ->[B](y: B): (Vector3, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to ArrowAssoc[Vector3] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def Rx(ang: Float): Vector3

    Permalink

    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

  9. def Ry(ang: Float): Vector3

    Permalink

    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

  10. def Rz(ang: Float): Vector3

    Permalink

    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

  11. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensuring(cond: (Vector3) ⇒ Boolean, msg: ⇒ Any): Vector3

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to Ensuring[Vector3] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Vector3) ⇒ Boolean): Vector3

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to Ensuring[Vector3] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Vector3

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to Ensuring[Vector3] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Vector3

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to Ensuring[Vector3] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to StringFormat[Vector3] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def wait(): Unit

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

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

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

    Permalink
  30. def xy: Vector3

    Permalink

    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

  31. val y: Float

    Permalink
  32. val z: Float

    Permalink
  33. def [B](y: B): (Vector3, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to ArrowAssoc[Vector3] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Vector3 to any2stringadd[Vector3] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (vector3: any2stringadd[Vector3]).+(other)
    Definition Classes
    any2stringadd

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Vector3 to any2stringadd[Vector3]

Inherited by implicit conversion StringFormat from Vector3 to StringFormat[Vector3]

Inherited by implicit conversion Ensuring from Vector3 to Ensuring[Vector3]

Inherited by implicit conversion ArrowAssoc from Vector3 to ArrowAssoc[Vector3]

Ungrouped