Vertex

indigo.shared.geometry.Vertex
See theVertex companion object
final case class Vertex(x: Double, y: Double)

A Vertex is another co-ordinate-like type that specifically represents a point on a graph.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def %(other: Vertex): Vertex
def %(other: Vector2): Vertex
def %(value: Double): Vertex
def *(other: Vertex): Vertex
def *(other: Vector2): Vertex
def *(value: Double): Vertex
def +(other: Vertex): Vertex
def +(other: Vector2): Vertex
def +(value: Double): Vertex
def -(other: Vertex): Vertex
def -(other: Vector2): Vertex
def -(value: Double): Vertex
def /(other: Vertex): Vertex
def /(other: Vector2): Vertex
def /(value: Double): Vertex
def abs: Vertex
def angle: Radians
def ceil: 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.

Attributes

def dot(other: Vector2): Double
def floor: Vertex
def invert: Vertex
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 moveBy(v: Vector2): Vertex
def moveTo(newPosition: Vertex): Vertex
def moveTo(x: Double, y: Double): Vertex
def moveTo(v: Vector2): Vertex
def rotateBy(angle: Radians): Vertex
def rotateBy(angle: Radians, origin: Vertex): Vertex
def rotateTo(angle: Radians): Vertex
def round: Vertex
def scaleBy(vec: Vertex): Vertex
def scaleBy(amount: Double): Vertex
def toList: List[Double]
def toPoint: Point
def toSize: Size
def translate(vec: Vertex): Vertex
def translate(vec: Vector2): Vertex
def withX(newX: Double): Vertex
def withY(newY: Double): Vertex
def ~==(other: Vertex): Boolean

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product