Ellipse

ostrat.geom.Ellipse
See theEllipse companion trait
object Ellipse

Companion object for the Ellipse trait contains the EllipseImp implementation class and factory methods for Ellipse that delegate to EllipseImp.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Ellipse.type

Members list

Type members

Classlikes

final case class EllipseImp(cenX: Double, cenY: Double, axesPt1x: Double, axesPt1y: Double, radius2: Double) extends Ellipse, AxisFree

The implementation class for Ellipses that are not Circles. The Ellipse is encoded as 3 Vec2s or 6 scalars although it is possible to encode an ellipse with 5 scalars. Encoding the Ellipse this way greatly helps human visualisation of transformations upon an ellipse.

The implementation class for Ellipses that are not Circles. The Ellipse is encoded as 3 Vec2s or 6 scalars although it is possible to encode an ellipse with 5 scalars. Encoding the Ellipse this way greatly helps human visualisation of transformations upon an ellipse.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait AxisFree
trait Ellipse
trait ShapeCentred
trait CentredElem
trait Shape
trait BoundedElem
trait Fillable
trait Drawable
trait EllipseBased
trait WithCentre
trait GeomElem
class Object
trait Matchable
class Any
Show all
object EllipseImp

Companion object for the EllipseImp class, contains factory methods.

Companion object for the EllipseImp class, contains factory methods.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
EllipseImp.type

Value members

Concrete methods

def apply(radius1: Double, radius0: Double, cenX: Double, cenY: Double): Ellipse

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Attributes

def apply(radius1: Double, radius0: Double, cen: Pt2): Ellipse

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Attributes

def cenAxes1Radius2(xCen: Double, yCen: Double, xAxes1: Double, yAxes1: Double, radius2: Double): Ellipse
def cenAxes1axes4(cen: Pt2, axes1: Pt2, axes4: Pt2): EllipseImp

Factory method that creates an ellipse from the centre point, axes point 1 and axes point 4.

Factory method that creates an ellipse from the centre point, axes point 1 and axes point 4.

Attributes

def diameter(diameter1: Double, diameter0: Double, cen: Pt2): Ellipse

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Factory method for an Ellipse. The apply factory methods in this Ellipse companion object default to an EllipseImp class.

Attributes

Implicits

Implicits

implicit val rotateImplicit: Rotate[Ellipse]
implicit val scaleImplicit: Scale[Ellipse]
implicit val shearImplicit: Shear[Ellipse]
implicit val slateImplicit: Slate[Ellipse]