Ellipse

object Ellipse

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

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final case
class EllipseImp(cenX: Double, cenY: Double, axesPt1x: Double, axesPt1y: Double, radius2: Double) extends Ellipse with 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.

Companion
object
object EllipseImp

Companion object for the EllipseImp class, contains factory methods.

Companion object for the EllipseImp class, contains factory methods.

Companion
class

Value members

Concrete methods

def apply(radius1: Double, radius0: 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.

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.

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.

Implicits