Module Ellipse-PIXI

class type _t = { ... }
type t = Js.t(_t);

The Ellipse object is used to help draw graphics and can also be used to specify a hit area for displayObjects.

module Impl: { ... };
include Impl;
let create: ?⁠x:float => ?⁠y:float => ?⁠halfWidth:float => ?⁠halfHeight:float => unit => t;
let getHeight: Js.t(_t) => float;
let setHeight: Js.t(_t) => float => unit;
let getWidth: Js.t(_t) => float;
let setWidth: Js.t(_t) => float => unit;
let _getType: Js.t(_t) => int;
let getType: Js.t(_t) => PIXI.SHAPES.t;

The type of the object, mainly used to avoid instanceof checks

let getX: Js.t(_t) => float;

position of the circle on the x axis

let setX: Js.t(_t) => float => unit;

position of the circle on the x axis

let getY: Js.t(_t) => float;

position of the circle on the y axis

let setY: Js.t(_t) => float => unit;

position of the circle on the y axis

let clone: Js.t(_t) => Js.t(_t);

Creates a clone of this ellipse

let contains: Js.t(_t) => x:float => y:float => bool;

Checks whether the x and y coordinates passed to this function are contained within this ellipse

let getBounds: Js.t(_t) => Js.t(PIXI.Rectangle.#_t);

Returns the framing rectangle of the ellipse as a Rectangle object