Polygon

sealed trait Polygon
Companion:
object
class Object
trait Matchable
class Any
class Closed
class Open

Value members

Abstract methods

def moveBy(amount: Vertex): Polygon
def moveTo(newPosition: Vertex): Polygon

Concrete methods

def addVertex(vertex: Vertex): Polygon
def contains(vertex: Vertex): Boolean
def moveBy(amount: Vector2): Polygon
def moveTo(newPosition: Vector2): Polygon
def scaleBy(amount: Double): Polygon
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Abstract fields

Concrete fields