Hexagon

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

The Hexagon class provides 6-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, ww: Double, hh: Double): Unit

Set the frame for the hexagon.

Set the frame for the hexagon.

Value parameters

hh

the height of the hexagon (2sin60)

tx

the top-left x-coordinate

ty

the top-left y-coordinate

ww

the width of the hexagon (1+2cos60)

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