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 }
-
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
-
Computes the focal points of this 2D ellipse, as two vectors in space that form pins-and-string construction method for the ellipse.
Declaration
Swift
func foci() -> (a: Vector, b: Vector)