Hierarchy (view full)

Constructors

Properties

x y

Methods

Constructors

Properties

x: number
y: number

Methods

  • Calculates the angle between this point (as a vector) and another point.

    Parameters

    Returns number

    The angle between the two vectors in radians.

  • Calculates the distance between this point and another point.

    Parameters

    Returns number

    The distance between the two points.

  • Calculates the dot product of this point (as a vector) and another point.

    Parameters

    Returns number

    The dot product.

  • Calculates the length of the vector represented by the point.

    Returns number

    The length of the vector.