Quad

scalation.scala2d.Quad
case class Quad() extends Polygon

The Quad class provides 4-sided polygons.

Attributes

Graph
Supertypes
trait Product
trait Equals
class Polygon
class Polygon
trait Serializable
trait Shape
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addPoints(x: VectorD, y: VectorD): Unit

Set the points/vertices for the quad.

Set the points/vertices for the quad.

Value parameters

x

the x-coordinates

y

the y-coordinates

Attributes

def setFrame(tx: Double, ty: Double, w: Double, h: Double): Unit

Set the frame for the square quad.

Set the frame for the square quad.

Value parameters

h

the height of the quad

tx

the top-left x-coordinate

ty

the top-left y-coordinate

w

the width of the quad

Attributes

Inherited methods

def addPoint(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
Polygon
def contains(x$0: Rectangle2D): Boolean

Attributes

Inherited from:
Polygon
def contains(x$0: Double, x$1: Double, x$2: Double, x$3: Double): Boolean

Attributes

Inherited from:
Polygon
def contains(x$0: Point2D): Boolean

Attributes

Inherited from:
Polygon
def contains(x$0: Double, x$1: Double): Boolean

Attributes

Inherited from:
Polygon
def contains(x$0: Int, x$1: Int): Boolean

Attributes

Inherited from:
Polygon
def contains(x$0: Point): Boolean

Attributes

Inherited from:
Polygon
def getBounds(): Rectangle

Attributes

Inherited from:
Polygon
def getBounds2D(): Rectangle2D

Attributes

Inherited from:
Polygon
def getPathIterator(x$0: AffineTransform, x$1: Double): PathIterator

Attributes

Inherited from:
Polygon
def getPathIterator(x$0: AffineTransform): PathIterator

Attributes

Inherited from:
Polygon
def intersects(x$0: Rectangle2D): Boolean

Attributes

Inherited from:
Polygon
def intersects(x$0: Double, x$1: Double, x$2: Double, x$3: Double): Boolean

Attributes

Inherited from:
Polygon
def invalidate(): Unit

Attributes

Inherited from:
Polygon
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def reset(): Unit

Attributes

Inherited from:
Polygon
def translate(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
Polygon

Deprecated and Inherited methods

@Deprecated
def getBoundingBox(): Rectangle

Attributes

Deprecated
true
Inherited from:
Polygon
@Deprecated
def inside(x$0: Int, x$1: Int): Boolean

Attributes

Deprecated
true
Inherited from:
Polygon

Inherited fields

var npoints: Int

Attributes

Inherited from:
Polygon
var xpoints: Array[Int]

Attributes

Inherited from:
Polygon
var ypoints: Array[Int]

Attributes

Inherited from:
Polygon