GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — Point | @maxgraph/core

  • Point

Class Point

Implements a 2-dimensional vector with double precision coordinates.

Hierarchy (View Summary)

  • Point
    • Rectangle
  • Defined in view/geometry/Point.ts:24
Index

Constructors

constructor

Properties

_x _y

Accessors

x y

Methods

clone equals

Constructors

constructor

  • new Point(x?: number, y?: number): Point

    Constructs a new point for the optional x and y coordinates.

    Parameters

    • x: number = 0

      The x-coordinate (default is 0).

    • y: number = 0

      The y-coordinate (default is 0).

    Returns Point

    • Defined in view/geometry/Point.ts:31

Properties

_x

_x: number = 0

Holds the x-coordinate of the point. Default is 0.

  • Defined in view/geometry/Point.ts:39

_y

_y: number = 0

Holds the y-coordinate of the point. Default is 0.

  • Defined in view/geometry/Point.ts:44

Accessors

x

  • get x(): number

    Returns number

    • Defined in view/geometry/Point.ts:46
  • set x(x: number): void

    Parameters

    • x: number

    Returns void

    • Defined in view/geometry/Point.ts:50

y

  • get y(): number

    Returns number

    • Defined in view/geometry/Point.ts:56
  • set y(y: number): void

    Parameters

    • y: number

    Returns void

    • Defined in view/geometry/Point.ts:60

Methods

clone

  • clone(): Point

    Returns a clone of this Point.

    Returns Point

    • Defined in view/geometry/Point.ts:78

equals

  • equals(p: Point | null): boolean

    Returns true if the given object equals this point.

    Parameters

    • p: Point | null

    Returns boolean

    • Defined in view/geometry/Point.ts:69

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
_x_y
Accessors
xy
Methods
cloneequals
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.