Circle

final case class Circle(diameter: Double, cenX: Double, cenY: Double) extends Ellipselign with OrdinaledElem with AxisFree

Circle class is defined by its centre and radius. It fulfills the interface for an Ellipse.

Companion:
object
trait Serializable
trait Product
trait Equals
trait AxisFree
trait Ellipse
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

type ThisT = Circle

Value members

Concrete methods

override def area: Double
Definition Classes
override def attribs: Arr[XANumeric]
Definition Classes
override def axesPt1x: Double
Definition Classes
override def axesPt1y: Double
Definition Classes
override def axesPt2x: Double
Definition Classes
override def axesPt2y: Double
Definition Classes
override def axesPt3x: Double
Definition Classes
override def axesPt3y: Double
Definition Classes
override def axesPt4: Pt2
Definition Classes
override def axesPt4x: Double
Definition Classes
override def axesPt4y: Double
Definition Classes
override def bottomLeft: Pt2
Definition Classes
override def bottomRight: Pt2
Definition Classes
override def cenP1: Vec2
Definition Classes
override def cenP2: Vec2
Definition Classes
override def cenP3: Vec2
Definition Classes
override def cenP4: Vec2
Definition Classes
override def draw(lineColour: Colour, lineWidth: Double): CircleDraw
Definition Classes
override def e: Double
Definition Classes
override def fTrans(f: Pt2 => Pt2): Circle
Definition Classes
override def fill(fillColour: Colour): CircleFill
Definition Classes
override def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): CircleCompound
Definition Classes
override def fillInt(intValue: Int): CircleFill
Definition Classes
def fillRadial(cenColour: Colour, outerColour: Colour): CircleCompound
override def h: Double
Definition Classes
override def prolign(matrix: ProlignMatrix): Circle
Definition Classes
override def rMajor: Double
Definition Classes
override def rMinor: Double
Definition Classes

Diameter of the circle. This has the same value as width, a property that hasn't been created yet.

Diameter of the circle. This has the same value as width, a property that hasn't been created yet.

override def radius1: Double
Definition Classes
override def radius2: Double
Definition Classes
override def reflect(lineLike: LineLike): Circle
Definition Classes
override def rotate(angle: AngleVec): Circle
Definition Classes
override def scale(operand: Double): Circle

uniform scaling transformation on a Circle returns a circle. Use the xyScale method for differential scaling.

uniform scaling transformation on a Circle returns a circle. Use the xyScale method for differential scaling.

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

Translate geometric transformation on a Circle returns a Circle.

Translate geometric transformation on a Circle returns a Circle.

Definition Classes
override def topLeft: Pt2
Definition Classes
override def topRight: Pt2
Definition Classes
override def xRadius: Double
Definition Classes
override def yRadius: Double
Definition Classes

Inherited methods

final override def alignAngle: Angle

The alignment angle of axis 1 in an Ellipselign including the special case of Circle is by definition 0°.

The alignment angle of axis 1 in an Ellipselign including the special case of Circle is by definition 0°.

Definition Classes
Inherited from:
Ellipselign
final def axesPt1: Pt2
Inherited from:
Ellipse
final def axesPt2: Pt2
Inherited from:
Ellipse
override def axesPt3: Pt2
Definition Classes
Inherited from:
Ellipse
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
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
Inherited from:
BoundedElem

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from:
BoundedElem
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
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 cen: Pt2
Definition Classes
Inherited from:
Ellipse
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
Inherited from:
Ellipse
Inherited from:
Ellipse
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
override def negX: ThisT
Definition Classes
Inherited from:
AxisFree
override def negY: ThisT
Definition Classes
Inherited from:
AxisFree
Inherited from:
Product
override def rotate180: ThisT
Definition Classes
Inherited from:
AxisFree
override def rotate270: ThisT
Definition Classes
Inherited from:
AxisFree
override def rotate90: ThisT
Definition Classes
Inherited from:
AxisFree
Inherited from:
Ellipse
Inherited from:
Ellipse
override def scaleXY(xOperand: Double, yOperand: Double): Ellipse
Definition Classes
Inherited from:
Ellipse
override def shearX(operand: Double): Ellipse
Definition Classes
Inherited from:
Ellipse
override def shearY(operand: Double): Ellipse
Definition Classes
Inherited from:
Ellipse
Inherited from:
BoundedElem
Inherited from:
OrdinalEdgePoints
Inherited from:
BoundedElem

Top right offset from centre.

Top right offset from centre.

Inherited from:
OrdinalEdgePoints