Ellipse2

public extension Ellipse2
public extension Ellipse2 where Vector: VectorReal
public extension Ellipse2 where Vector: VectorFloatingPoint
extension Ellipse2: Convex2Type where Vector: Vector2Real
  • Declaration

    Swift

    var radiusX: Scalar { get set }
  • Declaration

    Swift

    var radiusY: Scalar { get set }

Available where Vector: VectorReal

  • Declaration

    Swift

    init(center: Vector, radiusX: Scalar, radiusY: Scalar)
  • Returns true if the point described by the given coordinates is contained within this ellipse.

    The method returns true for points that lie on the outer perimeter of the ellipse (inclusive)

    Declaration

    Swift

    func contains(x: Scalar, y: Scalar) -> Bool

Available where Vector: VectorFloatingPoint