case class Ellipse(c: Vec, r: Vec, rotation: Angle = Angle(0)) extends Closed with Product with Serializable
- Source
- geom.scala
- Alphabetic
- By Inheritance
- Ellipse
- Serializable
- Product
- Equals
- Closed
- Shape
- AnyRef
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(s: Double): Ellipse
- def +(v: Vec): Ellipse
- def -(v: Vec): Ellipse
- def ->[B](y: B): (Ellipse, B)
- def /(s: Double): Ellipse
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyIf(t: Boolean, f: (Ellipse) => Ellipse): Ellipse
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Ellipse) => Boolean)(f: (Ellipse) => Ellipse): Ellipse
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- lazy val area: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val c: Vec
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closest(p: Vec): Vec
- def contains(p: Vec): Boolean
- def draw(implicit g: DrawContext): Unit
generic draw method
- def elementOf(xs: Set[Ellipse]): Boolean
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Ellipse) => Boolean, msg: => Any): Ellipse
- def ensuring(cond: (Ellipse) => Boolean): Ellipse
- def ensuring(cond: Boolean, msg: => Any): Ellipse
- def ensuring(cond: Boolean): Ellipse
- 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()
- lazy val h: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def major: Double
- def minor: Double
- def moveTo(v: Vec): Ellipse
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Ellipse) => Boolean): Option[Ellipse]
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] 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: (Ellipse) => Boolean): Option[Ellipse]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def pdf(t: Vec): Double
- lazy val perimeter: Double
- def preApply[B](f: (Ellipse) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val r: Vec
- def relativeDist(p: Vec): Double
- def relativeDist2(p: Vec): Double
- val rotation: Angle
- def rz(a: Angle): Ellipse
- def sampleNormal(implicit rand: Rand): Vec
- def sideEffect(f: (Ellipse) => Unit): Ellipse
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Ellipse) => Boolean): Option[Ellipse]
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Ellipse
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def toPath: Path
represent the ellipse as a path (bezier curves) useful for drawing contexts that don't have circ or arc 2bez: crude approx: https://stackoverflow.com/a/22035723/622016 4bez: https://stackoverflow.com/a/2173084/622016 book: interactive bezier book: https://pomax.github.io/bezierinfo/#circles_cubic
- lazy val w: Double
- 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 ~(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
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Ellipse toany2stringadd[Ellipse] 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:(ellipse: any2stringadd[Ellipse]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def ?>(f: (Ellipse) => Boolean): Option[Ellipse]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] 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 |>[B](f: (Ellipse) => B): B
- Implicit
- This member is added by an implicit conversion from Ellipse toDrxAny[Ellipse] 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): (Ellipse, B)
- Implicit
- This member is added by an implicit conversion from Ellipse toArrowAssoc[Ellipse] 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.