scryetek.vecmath

Vec2

final class Vec2 extends AnyRef

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

Instance Constructors

  1. new Vec2()

    Annotations
    @inline()
  2. new Vec2(x: Float, y: 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): Vec2

    Returns the vector scaled by the given scalar.

    Returns the vector scaled by the given scalar.

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

    The dot product of two vectors.

    The dot product of two vectors.

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

    Adds two vectors.

    Adds two vectors.

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

    Subtracts two vectors.

    Subtracts two vectors.

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

    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, out: Vec2): Vec2

    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): Vec2

    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: Vec2, out: Vec2 = this): Vec2

    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(v: Vec2): Float

    Returns the angle between this vector and another, such that a rotation about this angle will align this vector onto the other.

  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): Vec2

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

    Divides this vector by the given scalar into the target output vector.

    Divides this vector by the given scalar into the target output vector.

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

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

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

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

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

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

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

    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

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

    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()
  27. def magSqr: Float

    Returns the squared magnitude (length2) of this vector.

    Returns the squared magnitude (length2) of this vector.

    Annotations
    @inline()
  28. def magnitude: Float

    Returns the magnitude (length) of this vector.

    Returns the magnitude (length) of this vector.

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

    Annotations
    @inline()
  30. def min(v: Vec2): Vec2

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

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

    Negates this vector into the target output vector.

    Negates this vector into the target output vector.

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

    Normalizes this vector into the target output vector.

    Normalizes this vector into the target output vector.

    Annotations
    @inline()
  34. def normalized: Vec2

    Returns the normalized vector.

    Returns the normalized vector.

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

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

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

    Destructively reflect this vector about the given normal.

    Destructively reflect this vector about the given normal.

    Note

    the normal must be normalized.

  38. def reflected(normal: Vec2): Vec2

    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: Vec2 = this): Vec2

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

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

    Annotations
    @inline()
  40. def set(x: Float = this.x, y: Float = this.y): Vec2

    Annotations
    @inline()
  41. def set(v: Vec2): Vec2

    Annotations
    @inline()
  42. def sub(x: Float, y: Float, out: Vec2): Vec2

    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): Vec2

    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: Vec2, out: Vec2 = this): Vec2

    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

    Definition Classes
    AnyRef
  46. def toString(): String

    Definition Classes
    Vec2 → AnyRef → Any
  47. def unary_-: Vec2

    Negates this vector.

    Negates this vector.

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

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

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

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

  52. var y: Float

  53. def zNormal(v: Vec2): Float

    Annotations
    @inline()

Inherited from AnyRef

Inherited from Any

Ungrouped