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 edgeCount: Int
def lineIntersectCheck(lineSegment: LineSegment): Boolean
def moveBy(x: Double, y: Double): Polygon
def moveBy(amount: Vector2): Polygon
def moveTo(x: Double, y: Double): Polygon
def moveTo(newPosition: Vector2): Polygon
def polygonIntersectCheck(polygon: Polygon): Boolean
def rectangleIntersectCheck(rectangle: Rectangle): Boolean
def scaleBy(amount: Double): Polygon
override
def toString: String
Definition Classes
Any

Abstract fields

val vertices: List[Vertex]

Concrete fields

lazy