Ellipse

trait Ellipse extends EllipseBased with ShapeCentred

The Ellipse trait can either be implemented as an Ellipse class or as a Circle. Which also fulfills the Ellipse interface. The factory methods in the Ellipse companion object return [Ellipse]].

Companion
object
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Value members

Abstract methods

def area: Double
def e: Double

Eccentricity of ellipse.

Eccentricity of ellipse.

def h: Double

The h value of this ellipse.

The h value of this ellipse.

override def negX: Ellipse
Definition Classes
override def negY: Ellipse
Definition Classes
def rMajor: Double

The major radius of this ellipse, often referred to as a in maths.

The major radius of this ellipse, often referred to as a in maths.

def rMinor: Double

The major radius of this ellipse,often refered to as b in maths.

The major radius of this ellipse,often refered to as b in maths.

override def scale(operand: Double): Ellipse

Uniform scaling transformation, on an Ellipse, returns an Ellipse. The return type may be narrowed in sub traits / classes.

Uniform scaling transformation, on an Ellipse, returns an Ellipse. The return type may be narrowed in sub traits / classes.

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): Ellipse

Translate 2D geometric transformation, on an Ellipse, returns an Ellipse. The return type may be narrowed in sub traits / classes.

Translate 2D geometric transformation, on an Ellipse, returns an Ellipse. The return type may be narrowed in sub traits / classes.

Definition Classes

Concrete methods

final def axesPt1: Pt2
final def axesPt2: Pt2
override def axesPt3: Pt2
Definition Classes
final override def cen: Pt2
Definition Classes
override def draw(lineColour: Colour, lineWidth: Double): EllipseDraw
Definition Classes
def fTrans(f: Pt2 => Pt2): Ellipse
override def fill(fillColour: Colour): EllipseFill
Definition Classes
override def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): GraphicElem
Definition Classes
override def fillInt(intValue: Int): EllipseFill
Definition Classes
override def prolign(matrix: ProlignMatrix): Ellipse
Definition Classes
override def reflect(lineLike: LineLike): Ellipse
Definition Classes
override def rotate(angle: AngleVec): Ellipse
Definition Classes
override def rotate180: Ellipse
Definition Classes
override def rotate270: Ellipse
Definition Classes
override def rotate90: Ellipse
Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): Ellipse
Definition Classes
override def shearX(operand: Double): Ellipse
Definition Classes
override def shearY(operand: Double): Ellipse
Definition Classes

Inherited methods

def axesPt1x: Double

The X component of the end point of axis 1. By default this is on the right of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The X component of the end point of axis 1. By default this is on the right of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt1y: Double

The Y component of the end point of axis 1. By default this is on the right of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The Y component of the end point of axis 1. By default this is on the right of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt2x: Double

The X component of the start point of axis 2. By default this is at the bottom of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The X component of the start point of axis 2. By default this is at the bottom of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt2y: Double

The Y component of the start point of axis 2. By default this is at the bottom of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The Y component of the start point of axis 2. By default this is at the bottom of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt3x: Double

The X component of the start point of axis 1. By default this is on the left of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The X component of the start point of axis 1. By default this is on the left of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt3y: Double

The Y component of the start point of axis 1. By default this is on the left of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The Y component of the start point of axis 1. By default this is on the left of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt4: Pt2

The end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt4x: Double

The X component of the end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The X component of the end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
def axesPt4y: Double

The Y component of the end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

The Y component of the end point of axis 2. By default this is at the top of the Ellipse. Mathematically this can be referred to as a vertex for the major axis or a co-vertex for the minor axis.

Inherited from
EllipseBased
Inherited from
BoundedElem
@inline
final def boundCen: Pt2

The centre of the bounding rectangle. consider also using cenDefault.

The centre of the bounding rectangle. consider also using cenDefault.

Inherited from
BoundedElem
def boundingHeight: Double
Inherited from
BoundedElem
def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from
BoundedElem
Inherited from
BoundedElem
def canEqual(that: Any): Boolean

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Inherited from
Shape
final override def cenDefault: Pt2

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

Definition Classes
Inherited from
CentredElem
def cenP1: Vec2

The 2D vector Vec2 from the centre point to pAxes1, the end point of axis 1, by default on the right of the Ellipse this arc is based on.

The 2D vector Vec2 from the centre point to pAxes1, the end point of axis 1, by default on the right of the Ellipse this arc is based on.

Inherited from
EllipseBased
def cenP2: Vec2

The 2D vector Vec2 from the centre point to pAxes2, the start point of axis 2, by default at the bottom of the Ellipse this arc is based on.

The 2D vector Vec2 from the centre point to pAxes2, the start point of axis 2, by default at the bottom of the Ellipse this arc is based on.

Inherited from
EllipseBased
def cenP3: Vec2

The 2D vector Vec2 from the centre point to pAxes3, the start point of axis 1 , by default on the left of the Ellipse this arc is based on.

The 2D vector Vec2 from the centre point to pAxes3, the start point of axis 1 , by default on the left of the Ellipse this arc is based on.

Inherited from
EllipseBased
def cenP4: Vec2

The 2D vector Vec2 from the centre point to pAxes4, the end point of axis 2, by default at the top of the Ellipse this arc is based on.

The 2D vector Vec2 from the centre point to pAxes4, the end point of axis 2, by default at the top of the Ellipse this arc is based on.

Inherited from
EllipseBased
def cenX: Double

The X component of the centre.

The X component of the centre.

Inherited from
WithCentre
def cenY: Double

The Y component of the centre.

The Y component of the centre.

Inherited from
WithCentre
final def diameter1: Double

Diameter 1 of the ellipse. By default this is the horizontal axis of the ellipse.This can be the major or minor axis.

Diameter 1 of the ellipse. By default this is the horizontal axis of the ellipse.This can be the major or minor axis.

Inherited from
EllipseBased
final def diameter2: Double

Diameter 2 of this ellipse. By default this is the vertical axis of the ellipse. This can be the major or minor axis.

Diameter 2 of this ellipse. By default this is the vertical axis of the ellipse. This can be the major or minor axis.

Inherited from
EllipseBased
def radius1: Double

Radius 1 of the ellipse. By default this is the horizontal axis of the ellipse. This can be the major or minor axis.

Radius 1 of the ellipse. By default this is the horizontal axis of the ellipse. This can be the major or minor axis.

Inherited from
EllipseBased
def radius2: Double

Radius 2 of the ellipse. By default this is the vertical axis of the ellipse. This can be the major or minor axis.

Radius 2 of the ellipse. By default this is the vertical axis of the ellipse. This can be the major or minor axis.

Inherited from
EllipseBased
Inherited from
BoundedElem
Inherited from
BoundedElem