ASP.NET MVC Controls | ComponentOne
In This Topic
    Point Class
    In This Topic
    File
    wijmo.js
    Module
    wijmo

    Class that represents a point (with x and y coordinates).

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(x?: number, y?: number): Point
    

    Initializes a new instance of the Point class.

    Parameters
    • x: number Optional

      X coordinate of the new Point.

    • y: number Optional

      Y coordinate of the new Point.

    Returns
    Point

    Properties

    x

    Gets or sets the x coordinate of this Point.

    Type
    number

    y

    Gets or sets the y coordinate of this Point.

    Type
    number

    Methods

    clone

    clone(): Point
    

    Creates a copy of this Point.

    Returns
    Point

    equals

    equals(pt: Point): boolean
    

    Returns true if a Point has the same coordinates as this Point.

    Parameters
    Returns
    boolean