Class/Object

scryetek.vecmath

Vec3

Related Docs: object Vec3 | package vecmath

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Vec3()

    Permalink
    Annotations
    @inline()
  2. new Vec3(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 *(s: Float): Vec3

    Permalink

    Returns the vector scaled by the given scalar.

    Returns the vector scaled by the given scalar.

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

    Permalink

    The dot product of two vectors.

    The dot product of two vectors.

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

    Permalink

    Adds two vectors.

    Adds two vectors.

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

    Permalink

    Subtracts two vectors.

    Subtracts two vectors.

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

    Permalink

    Returns the vector dividied by the given scalar.

    Returns the vector dividied by the given scalar.

    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def add(x: Float, y: Float, z: Float, out: Vec3): Vec3

    Permalink

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

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

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

    Permalink

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

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

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

    Permalink

    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 angleBetween(b: Vec3): Quat

    Permalink

    Return the quaternion that will align this vector with another.

  13. final def asInstanceOf[T0]: T0

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

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

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

    Permalink

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

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

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

    Permalink

    Returns the cross product of two vectors.

    Returns the cross product of two vectors.

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

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

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

    Permalink
    Definition Classes
    Vec3 → AnyRef → Any
  21. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

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

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

    Permalink

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

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

    Permalink

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

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

    Annotations
    @inline()
  27. def magSqr: Float

    Permalink

    Returns the squared magnitude (length2) of this vector.

    Returns the squared magnitude (length2) of this vector.

    Annotations
    @inline()
  28. def magnitude: Float

    Permalink

    Returns the magnitude (length) of this vector.

    Returns the magnitude (length) of this vector.

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

    Permalink
    Annotations
    @inline()
  30. def min(v: Vec3): Vec3

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

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

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

    Permalink
    Annotations
    @inline()
  34. def normalized: Vec3

    Permalink

    Returns the normalized vector.

    Returns the normalized vector.

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

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

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

    Permalink

    Destructively reflect this vector about the given normal.

  38. def reflected(normal: Vec3): Vec3

    Permalink

    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.

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

    Permalink

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

  40. def set(v: Vec3): Vec3

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

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

    Permalink

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

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

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

    Permalink

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

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

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

    Permalink

    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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def toString(): String

    Permalink
    Definition Classes
    Vec3 → AnyRef → Any
  47. def unary_-: Vec3

    Permalink
    Annotations
    @inline()
  48. final def wait(): Unit

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

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

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

    Permalink
  52. var y: Float

    Permalink
  53. var z: Float

    Permalink
  54. def (v: Vec3): Vec3

    Permalink

    Returns the cross product of two vectors.

    Returns the cross product of two vectors.

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped