Vec2

ai.dragonfly.math.vector.Vec2$
object Vec2

Created by clifton on 1/10/17.

Attributes

Source:
Vec2.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Vec2.type

Members list

Concise view

Value members

Concrete methods

def rotateAll(vectors: Array[Vec[2]], radians: Double): Array[Vec[2]]

Attributes

Source:
Vec2.scala
def rotateAllDegrees(vectors: Array[Vec[2]], degrees: Double): Array[Vec[2]]

Attributes

Source:
Vec2.scala

Extensions

Extensions

extension (thisVector: Vec[2])
inline def angleFrom(v: Vec[2]): Double

Compute the signed angle between two vectors.

Compute the signed angle between two vectors.

Attributes

v

the second vector to compare this vector to.

Returns:

the signed angle in radians

Source:
Vec2.scala
inline def pseudoCross(v: Vec[2]): Double

Attributes

Source:
Vec2.scala
inline def rotate(cosTheta: Double, sinTheata: Double): Vec[2]

Attributes

Source:
Vec2.scala
inline def rotate(radians: Double): Vec[2]

Attributes

Source:
Vec2.scala
inline def rotateDegrees(degrees: Double): Vec[2]

Attributes

Source:
Vec2.scala

Attributes

Source:
Vec2.scala
inline def x: Double

Attributes

Source:
Vec2.scala
inline def y: Double

Attributes

Source:
Vec2.scala