EArc

ostrat.geom.EArc
See theEArc companion object
trait EArc extends EllipseBased, CurveSeg

Elliptical Arc. the trait has 2 implementations CArc and EArc.EArcImp.

Attributes

Companion
object
Graph
Supertypes
trait CurveSeg
trait Drawable
trait EllipseBased
trait WithCentre
trait GeomElem
class Object
trait Matchable
class Any
Show all
Known subtypes
class EArcImp
trait EArclign
class CArc
class EArclignImp

Members list

Value members

Abstract methods

def addRotations(delta: Int): EArc
def counter: Int

Concrete methods

def cenEnd: Vec2

The vector [Vec2] from the centre of the arc to the end point of the arc.

The vector [Vec2] from the centre of the arc to the end point of the arc.

Attributes

def cenStart: Vec2

The vector [Vec2] from the centre of the arc to the start point of the arc.

The vector [Vec2] from the centre of the arc to the start point of the arc.

Attributes

override def draw(lineWidth: Double, lineColour: Colour): EArcDraw

Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.

Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.

Attributes

Definition Classes

The angle of the end point of the arc, relative to its centre.

The angle of the end point of the arc, relative to its centre.

Attributes

The angle of the end point of the arc, relative to its centre.

The angle of the end point of the arc, relative to its centre.

Attributes

The value of the angle of the end point of the arc, relative to its centre in degrees.

The value of the angle of the end point of the arc, relative to its centre in degrees.

Attributes

The line segment [LineSeg] from the centre of the arc to the end point of the arc.

The line segment [LineSeg] from the centre of the arc to the end point of the arc.

Attributes

The line segment [LineSeg] from the centre of the arc to the start point of the arc.

The line segment [LineSeg] from the centre of the arc to the start point of the arc.

Attributes

override def negX: EArc

Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the Y axis by negating X. The return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def negY: EArc

Mirror, reflection 2D geometric transformation across the X axis by negating y, on this EArc retruns an EARc.

Mirror, reflection 2D geometric transformation across the X axis by negating y, on this EArc retruns an EARc.

Attributes

Definition Classes
override def prolign(matrix: ProlignMatrix): EArc

2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.

2D Transformation using a ProlignMatrix. The return type will be narrowed in sub classes / traits.

Attributes

Definition Classes
override def reflect(lineLike: LineLike): EArc

Reflect 2D geometric transformation across a line, line segment or ray on a EArc returns an EArc.

Reflect 2D geometric transformation across a line, line segment or ray on a EArc returns an EArc.

Attributes

Definition Classes
override def rotate(angle: AngleVec): EArc

Rotation 2D geometric transformation on a EArc. The return type will be narrowed in sub classes and traits.

Rotation 2D geometric transformation on a EArc. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def rotate180: EArc

Rotation of 180 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Rotation of 180 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def rotate270: EArc

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def rotate90: EArc

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def scale(operand: Double): EArc

Uniform 2D geometric scaling transformation, returns an EArc.

Uniform 2D geometric scaling transformation, returns an EArc.

Attributes

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): EArc

XY scaling 2D geometric transformation on this EArc returns an EArc.This allows different scaling factors across X and Y dimensions.

XY scaling 2D geometric transformation on this EArc returns an EArc.This allows different scaling factors across X and Y dimensions.

Attributes

Definition Classes
override def shearX(operand: Double): EArc

Shear 2D geometric transformation along the X Axis on this EArc returns an EArc.

Shear 2D geometric transformation along the X Axis on this EArc returns an EArc.

Attributes

Definition Classes
override def shearY(operand: Double): EArc

Shear 2D geometric transformation along the Y Axis on this EArc, returns an EArc.

Shear 2D geometric transformation along the Y Axis on this EArc, returns an EArc.

Attributes

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

Translate 2D geometric transformation on this EArc, returns an EArc.

Translate 2D geometric transformation on this EArc, returns an EArc.

Attributes

Definition Classes

The angle of the start point of the arc, relative to its centre.

The angle of the start point of the arc, relative to its centre.

Attributes

The angle of the start point of the arc, relative to its centre for graphical systems where the Y axis points down.

The angle of the start point of the arc, relative to its centre for graphical systems where the Y axis points down.

Attributes

The value of the angle of the start point of the arc, relative to its centre in degrees.

The value of the angle of the start point of the arc, relative to its centre in degrees.

Attributes

The value of the angle of the start point of the arc, relative to its centre in degrees.

The value of the angle of the start point of the arc, relative to its centre in degrees.

Attributes

Inherited methods

def axesPt1: Pt2

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 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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased
def axesPt2: Pt2

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 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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased
def axesPt3: Pt2

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 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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased
def cen: Pt2

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

Attributes

Inherited from:
WithCentre
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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Inherited from:
EllipseBased
def cenX: Double

The X component of the centre.

The X component of the centre.

Attributes

Inherited from:
WithCentre
def cenY: Double

The Y component of the centre.

The Y component of the centre.

Attributes

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.

Attributes

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.

Attributes

Inherited from:
EllipseBased
def endX: Double

The X component of the end point of this curve segment. Often called x2 on a line or x4 on a cubic bezier in other APIs.

The X component of the end point of this curve segment. Often called x2 on a line or x4 on a cubic bezier in other APIs.

Attributes

Inherited from:
CurveSeg
def endY: Double

The Y component of the end point of this curve segment. Often called y2 on a line or y4 on a cubic bezier in other APIs.

The Y component of the end point of this curve segment. Often called y2 on a line or y4 on a cubic bezier in other APIs.

Attributes

Inherited from:
CurveSeg
def fillOrDraw(lineWidth: Double, colour: Colour): GraphicElem

If this element is Fillable applies the fill method, ignoring the line width parameter, else applies the draws method.

If this element is Fillable applies the fill method, ignoring the line width parameter, else applies the draws method.

Attributes

Inherited from:
Drawable
final def pEnd: Pt2

The end point Pt2 of this curve segment. Often called p2 on a line or p4 on a cubic bezier in other APIs.

The end point Pt2 of this curve segment. Often called p2 on a line or p4 on a cubic bezier in other APIs.

Attributes

Inherited from:
CurveSeg
final def pStart: Pt2

Start point of this curve segment, often called p1

Start point of this curve segment, often called p1

Attributes

Inherited from:
CurveSeg

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.

Attributes

Inherited from:
EllipseBased

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.

Attributes

Inherited from:
EllipseBased
def startX: Double

The X component of the start point of this curve segment often called x1 in other APIs.

The X component of the start point of this curve segment often called x1 in other APIs.

Attributes

Inherited from:
CurveSeg
def startY: Double

The Y component of the start point of this curve segment, often called y1 in other APIs.

The Y component of the start point of this curve segment, often called y1 in other APIs.

Attributes

Inherited from:
CurveSeg