copy method

  1. @override
EllipseCurve copy(
  1. Curve source
)
override

Copies another name object to this instance.

Implementation

@override
EllipseCurve copy(Curve source) {
  if(source is EllipseCurve){
    super.copy(source);

    aX = source.aX;
    aY = source.aY;

    xRadius = source.xRadius;
    yRadius = source.yRadius;

    aStartAngle = source.aStartAngle;
    aEndAngle = source.aEndAngle;

    aClockwise = source.aClockwise;

    aRotation = source.aRotation;
  }

  return this;
}