scalation.scala2d

Polygon

case class Polygon(vertex: Array[R2]) extends Double with Error 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
Serializable, Product, Equals, Error, Double, Serializable, Path2D, Cloneable, Shape, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Polygon
  2. Serializable
  3. Product
  4. Equals
  5. Error
  6. Double
  7. Serializable
  8. Path2D
  9. Cloneable
  10. Shape
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

    vertex

    the n >= 3 corner points of the polygon

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def append(arg0: PathIterator, arg1: Boolean): Unit

    Definition Classes
    Double → Path2D
  7. final def append(arg0: Shape, arg1: Boolean): Unit

    Definition Classes
    Path2D
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(arg0: Any): Boolean

    Definition Classes
    Polygon → Equals
  10. final def clone(): AnyRef

    Definition Classes
    Double → Path2D → AnyRef
  11. final def closePath(): Unit

    Definition Classes
    Path2D
  12. final def contains(arg0: Rectangle2D): Boolean

    Definition Classes
    Path2D → Shape
  13. final def contains(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Path2D → Shape
  14. final def contains(arg0: Point2D): Boolean

    Definition Classes
    Path2D → Shape
  15. final def contains(arg0: Double, arg1: Double): Boolean

    Definition Classes
    Path2D → Shape
  16. final def createTransformedShape(arg0: AffineTransform): Shape

    Definition Classes
    Path2D
  17. final def curveTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double, arg4: Double, arg5: Double): Unit

    Definition Classes
    Double → Path2D
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    Polygon → Equals → AnyRef → Any
  20. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  22. final def getBounds(): Rectangle

    Definition Classes
    Path2D → Shape
  23. final def getBounds2D(): Rectangle2D

    Definition Classes
    Double → Shape
  24. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  25. final def getCurrentPoint(): Point2D

    Definition Classes
    Path2D
  26. final def getPathIterator(arg0: AffineTransform): PathIterator

    Definition Classes
    Double → Shape
  27. final def getPathIterator(arg0: AffineTransform, arg1: Double): PathIterator

    Definition Classes
    Path2D → Shape
  28. def getTopLeft: R2

    Get the topLeft coordinates of the polygons bounding box.

  29. final def getWindingRule(): Int

    Definition Classes
    Path2D
  30. def hashCode(): Int

    Definition Classes
    Polygon → AnyRef → Any
  31. final def intersects(arg0: Rectangle2D): Boolean

    Definition Classes
    Path2D → Shape
  32. final def intersects(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Boolean

    Definition Classes
    Path2D → Shape
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. final def lineTo(arg0: Double, arg1: Double): Unit

    Definition Classes
    Double → Path2D
  35. final def moveTo(arg0: Double, arg1: Double): Unit

    Definition Classes
    Double → Path2D
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def productArity: Int

    Definition Classes
    Polygon → Product
  40. def productElement(arg0: Int): Any

    Definition Classes
    Polygon → Product
  41. def productIterator: Iterator[Any]

    Definition Classes
    Product
  42. def productPrefix: String

    Definition Classes
    Polygon → Product
  43. final def quadTo(arg0: Double, arg1: Double, arg2: Double, arg3: Double): Unit

    Definition Classes
    Double → Path2D
  44. final def reset(): Unit

    Definition Classes
    Path2D
  45. final def setWindingRule(arg0: Int): Unit

    Definition Classes
    Path2D
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    Polygon → AnyRef → Any
  48. final def transform(arg0: AffineTransform): Unit

    Definition Classes
    Double → Path2D
  49. val vertex: Array[R2]

    the n >= 3 corner points of the polygon

  50. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Error

Inherited from Double

Inherited from Serializable

Inherited from Path2D

Inherited from Cloneable

Inherited from Shape

Inherited from AnyRef

Inherited from Any