case class Poly(vertices: Seq[Vec]) extends Closed with Product with Serializable
- Source
- geom.scala
- Alphabetic
- By Inheritance
- Poly
- Serializable
- Product
- Equals
- Closed
- Shape
- AnyRef
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(s: Double): Poly
- def +(r: Vec): Poly
- def ->[B](y: B): (Poly, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyIf(t: Boolean, f: (Poly) => Poly): Poly
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Poly) => Boolean)(f: (Poly) => Poly): Poly
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- lazy val area: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clip(that: Poly): Seq[Poly]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closest(p: Vec): Vec
- lazy val cm: Vec
- def contains(t: Vec): Boolean
- lazy val convex: Poly
- def dist(p: Vec): Double
- def draw(implicit g: DrawContext): Unit
generic draw method
- def elementOf(xs: Set[Poly]): Boolean
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Poly) => Boolean, msg: => Any): Poly
- def ensuring(cond: (Poly) => Boolean): Poly
- def ensuring(cond: Boolean, msg: => Any): Poly
- def ensuring(cond: Boolean): Poly
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(that: Poly): Seq[Poly]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Poly) => Boolean): Option[Poly]
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Poly) => Boolean): Option[Poly]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def overlaps(that: Poly): Boolean
- def preApply[B](f: (Poly) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val rect: Rect
- lazy val segments: Seq[Line]
- def sideEffect(f: (Poly) => Unit): Poly
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Poly) => Boolean): Option[Poly]
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Poly
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- val valid: Boolean
- val vertices: Seq[Vec]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def weiler_atherton(that: Poly, merge: Boolean): (Seq[Poly], Seq[V], Seq[V])
- def ~(that: Poly): Polys
- def ~(v: Vec): Poly
- def ~(color: Color): Styled
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
- def ~(property: Property): Styled
initialize shape with a style
initialize shape with a style
- Definition Classes
- Shape
- def ~(style: Style): Styled
Attach a style to a shape
Attach a style to a shape
- Definition Classes
- Shape
- case object Clip extends Kind with Product with Serializable
- case object Enter extends Kind with Product with Serializable
- case object Exit extends Kind with Product with Serializable
- case object Subj extends Kind with Product with Serializable
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Poly toany2stringadd[Poly] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(poly: any2stringadd[Poly]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def ?>(f: (Poly) => Boolean): Option[Poly]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def ^(that: Poly): Seq[Poly]
- Annotations
- @deprecated
- Deprecated
(Since version 0.1) use clip instead
- lazy val bounds: Rect
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.13) use rect for a more direct meaning since bound has other meanings in drx
- def |>[B](f: (Poly) => B): B
- Implicit
- This member is added by an implicit conversion from Poly toDrxAny[Poly] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Poly, B)
- Implicit
- This member is added by an implicit conversion from Poly toArrowAssoc[Poly] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.