Polygon

indigo.shared.geometry.Polygon
See thePolygon companion object
sealed trait Polygon

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Closed
class Open

Members list

Value members

Abstract methods

def moveBy(amount: Vertex): Polygon
def moveTo(newPosition: Vertex): Polygon
def scaleBy(vec: 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
def scaleBy(vec: Vector2): 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.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Abstract fields

Concrete fields