Point

indigo.shared.datatypes.Point
See thePoint companion object
final case class Point(x: Int, y: Int)

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 %(pt: Point): Point
def %(i: Int): Point
def %(d: Double): Point
def *(pt: Point): Point
def *(i: Int): Point
def *(d: Double): Point
def +(pt: Point): Point
def +(i: Int): Point
def +(d: Double): Point
def -(pt: Point): Point
def -(i: Int): Point
def -(d: Double): Point
def /(pt: Point): Point
def /(i: Int): Point
def /(d: Double): Point
def abs: Point
def angle: Radians
def clamp(min: Int, max: Int): Point
def distanceTo(other: Point): Double
def invert: Point
def max(other: Point): Point
def max(value: Int): Point
def min(other: Point): Point
def min(value: Int): Point
def moveBy(amount: Point): Point
def moveBy(x: Int, y: Int): Point
def moveTo(newPosition: Point): Point
def moveTo(x: Int, y: Int): Point
def rotateBy(angle: Radians): Point
def rotateBy(angle: Radians, origin: Point): Point
def rotateTo(angle: Radians): Point
def toSize: Size
def withX(newX: Int): Point
def withY(newY: Int): Point

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product