scryetek.vecmath

Vec3

final class Vec3 extends AnyRef

Annotations
@inline()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Vec3
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Vec3()

    Annotations
    @inline()
  2. new Vec3(x: Float, y: Float, z: Float)

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 *(s: Float): Vec3

    Returns the vector scaled by the given scalar.

    Returns the vector scaled by the given scalar.

    Annotations
    @inline()
  5. def *(v: Vec3): Float

    The dot product of two vectors.

    The dot product of two vectors.

    Annotations
    @inline()
  6. def +(v: Vec3): Vec3

    Adds two vectors.

    Adds two vectors.

    Annotations
    @inline()
  7. def -(v: Vec3): Vec3

    Subtracts two vectors.

    Subtracts two vectors.

    Annotations
    @inline()
  8. def /(s: Float): Vec3

    Returns the vector dividied by the given scalar.

    Returns the vector dividied by the given scalar.

    Annotations
    @inline()
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def add(x: Float, y: Float, z: Float, out: Vec3): Vec3

    Adds this vector to another vector into the target output vector.

    Adds this vector to another vector into the target output vector.

    Annotations
    @inline()
  12. def add(x: Float, y: Float, z: Float): Vec3

    Adds this vector to another vector into the target output vector.

    Adds this vector to another vector into the target output vector.

    Annotations
    @inline()
  13. def add(v: Vec3, out: Vec3 = this): Vec3

    Adds this vector to another vector into the target output vector.

    Adds this vector to another vector into the target output vector.

    Annotations
    @inline()
  14. def angleBetween(b: Vec3): Quat

    Return the quaternion that will align this vector with another.

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def copy(x: Float = x, y: Float = y, z: Float = z): Vec3

    Annotations
    @inline()
  18. def cross(v: Vec3, out: Vec3 = this): Vec3

    Cross products this vector and another into the target output vector.

    Cross products this vector and another into the target output vector.

    Annotations
    @inline()
  19. def crossed(v: Vec3): Vec3

    Returns the cross product of two vectors.

    Returns the cross product of two vectors.

    Annotations
    @inline()
  20. def div(s: Float, out: Vec3 = this): Vec3

    Annotations
    @inline()
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(o: Any): Boolean

    Definition Classes
    Vec3 → AnyRef → Any
  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. def hashCode(): Int

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

    Definition Classes
    Any
  27. def lerp(q: Vec3, t: Float, out: Vec3): Vec3

    Destructively places the linear interpolation of this vector with another into out, with t ranging from 0.

    Destructively places the linear interpolation of this vector with another into out, with t ranging from 0..1

  28. def lerp(q: Vec3, t: Float): Vec3

    Returns the linear interpolation of this vector with another, with t ranging from 0.

    Returns the linear interpolation of this vector with another, with t ranging from 0..1

    Annotations
    @inline()
  29. def magSqr: Float

    Returns the squared magnitude (length2) of this vector.

    Returns the squared magnitude (length2) of this vector.

    Annotations
    @inline()
  30. def magnitude: Float

    Returns the magnitude (length) of this vector.

    Returns the magnitude (length) of this vector.

    Annotations
    @inline()
  31. def max(v: Vec3): Vec3

    Annotations
    @inline()
  32. def min(v: Vec3): Vec3

    Annotations
    @inline()
  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. def negate(out: Vec3 = this): Vec3

    Annotations
    @inline()
  35. def normalize(out: Vec3 = this): Vec3

    Annotations
    @inline()
  36. def normalized: Vec3

    Returns the normalized vector.

    Returns the normalized vector.

    Annotations
    @inline()
  37. final def notify(): Unit

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

    Definition Classes
    AnyRef
  39. def reflect(normal: Vec3, out: Vec3 = this): Vec3

    Destructively reflect this vector about the given normal.

  40. def reflected(normal: Vec3): Vec3

    Return a vector reflecting this vector about the given normal.

    Return a vector reflecting this vector about the given normal.

    Note

    the normal must be normalized.

  41. def scale(s: Float, out: Vec3 = this): Vec3

    Scales this vector by the given scalar, into the target output vector.

  42. def set(v: Vec3): Vec3

    Annotations
    @inline()
  43. def set(x: Float = this.x, y: Float = this.y, z: Float = this.z): Vec3

    Annotations
    @inline()
  44. def sub(x: Float, y: Float, z: Float): Vec3

    Subtracts a vector from this vector into the given output vector.

    Subtracts a vector from this vector into the given output vector.

    Annotations
    @inline()
  45. def sub(x: Float, y: Float, z: Float, out: Vec3): Vec3

    Subtracts a vector from this vector into the given output vector.

    Subtracts a vector from this vector into the given output vector.

    Annotations
    @inline()
  46. def sub(v: Vec3, out: Vec3 = this): Vec3

    Subtracts a vector from this vector into the given output vector.

    Subtracts a vector from this vector into the given output vector.

    Annotations
    @inline()
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    Vec3 → AnyRef → Any
  49. def unary_-: Vec3

    Annotations
    @inline()
  50. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. var x: Float

  54. var y: Float

  55. var z: Float

  56. def (v: Vec3): Vec3

    Returns the cross product of two vectors.

    Returns the cross product of two vectors.

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped