Interface Point

Represents a point in 2D space.

Hierarchy

Implemented by

Properties

distanceFromOrigin: number

Returns the distance from the origin.

objectType: "point"

This object is of type point.

virtual: false

Whether this object is virtual.

x: number

X coordinate of the point.

y: number

Y coordinate of the point.

Methods

  • Whether this object is equal to another object.
    If the objects are of a different type, this method should return false.
    If the objects are of the same type, this method should return true if the objects are equal, and false if they are not.

    Parameters

    Returns boolean

Generated using TypeDoc