Vertex

final case
class Vertex(x: Double, y: Double)
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(other: Vertex): Vertex
def *(value: Double): Vertex
def +(other: Vertex): Vertex
def +(value: Double): Vertex
def -(other: Vertex): Vertex
def -(value: Double): Vertex
def /(other: Vertex): Vertex
def /(value: Double): Vertex
def abs: Vertex
def clamp(min: Double, max: Double): Vertex
def clamp(min: Vertex, max: Vertex): Vertex
def clamp(v1: Vector2, v2: Vector2): Vertex
def distanceTo(other: Vertex): Double
def dot(other: Vertex): Double

Dot product. Here for convenience but really this is vector operation.

Dot product. Here for convenience but really this is vector operation.

def dot(other: Vector2): Double
def length: Double
def max(other: Vertex): Vertex
def max(value: Double): Vertex
def max(v: Vector2): Vertex
def min(other: Vertex): Vertex
def min(value: Double): Vertex
def min(v: Vector2): Vertex
def moveBy(amount: Vertex): Vertex
def moveBy(x: Double, y: Double): Vertex
def moveTo(newPosition: Vertex): Vertex
def moveTo(x: Double, y: Double): Vertex
def rotateBy(angle: Radians): Vertex
def rotateBy(angle: Radians, origin: Vertex): Vertex
def rotateTo(angle: Radians): Vertex
def scaleBy(vec: Vertex): Vertex
def scaleBy(amount: Double): Vertex
def toList: List[Double]
def withX(newX: Double): Vertex
def withY(newY: Double): Vertex
def ~==(other: Vertex): Boolean

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product