Packages

case class Polygon(vertex: Array[R2]) extends Double with Product with Serializable

The Polygon class enhances the Path2D.Double class (from the java.awt.geom package) by adding a constructor for building a polygon given its vertices.

vertex

the n >= 3 corner points of the polygon

Linear Supertypes
Product, Equals, Double, Serializable, Path2D, Cloneable, Shape, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Polygon
  2. Product
  3. Equals
  4. Double
  5. Serializable
  6. Path2D
  7. Cloneable
  8. Shape
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Polygon(vertex: Array[R2])

    vertex

    the n >= 3 corner points of the polygon

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def append(arg0: PathIterator, arg1: Boolean): Unit
    Definition Classes
    Double → Path2D
  5. final def append(arg0: Shape, arg1: Boolean): Unit
    Definition Classes
    Path2D
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def clone(): AnyRef
    Definition Classes
    Double → Path2D → AnyRef
  8. final def closePath(): Unit
    Definition Classes
    Path2D
  9. final def contains(arg0: Rectangle2D): Boolean
    Definition Classes
    Path2D → Shape
  10. final def contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
    Definition Classes
    Path2D → Shape
  11. final def contains(arg0: Point2D): Boolean
    Definition Classes
    Path2D → Shape
  12. final def contains(arg0: Double, arg1: Double): Boolean
    Definition Classes
    Path2D → Shape
  13. final def createTransformedShape(arg0: AffineTransform): Shape
    Definition Classes
    Path2D
  14. final def curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit
    Definition Classes
    Double → Path2D
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def getBounds(): java.awt.Rectangle
    Definition Classes
    Path2D → Shape
  17. final def getBounds2D(): Rectangle2D
    Definition Classes
    Double → Shape
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def getCurrentPoint(): Point2D
    Definition Classes
    Path2D
  20. final def getPathIterator(arg0: AffineTransform): PathIterator
    Definition Classes
    Double → Shape
  21. final def getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator
    Definition Classes
    Path2D → Shape
  22. def getTopLeft: R2

    Get the top-left coordinates of the polygons bounding box.

  23. final def getWindingRule(): Int
    Definition Classes
    Path2D
  24. final def intersects(arg0: Rectangle2D): Boolean
    Definition Classes
    Path2D → Shape
  25. final def intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean
    Definition Classes
    Path2D → Shape
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def lineTo(arg0: Double, arg1: Double): Unit
    Definition Classes
    Double → Path2D
  28. final def moveTo(arg0: Double, arg1: Double): Unit
    Definition Classes
    Double → Path2D
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. final def quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit
    Definition Classes
    Double → Path2D
  34. final def reset(): Unit
    Definition Classes
    Path2D
  35. final def setWindingRule(arg0: Int): Unit
    Definition Classes
    Path2D
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. final def transform(arg0: AffineTransform): Unit
    Definition Classes
    Double → Path2D
  38. final def trimToSize(): Unit
    Definition Classes
    Double → Path2D
  39. val vertex: Array[R2]
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Product

Inherited from Equals

Inherited from Double

Inherited from Serializable

Inherited from Path2D

Inherited from Cloneable

Inherited from Shape

Inherited from AnyRef

Inherited from Any

Ungrouped