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]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

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(since = _, forRemoval = _)
def getBoundingBox(): Rectangle

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
Polygon
@Deprecated(since = _, forRemoval = _)
def inside(x$0: Int, x$1: Int): Boolean

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
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