Home Reference Source
public class | source

Point

Represents a single two or three-dimensional point in a particular coordinate reference system. Created Point objects are frozen with Object.freeze() in constructor and thus immutable.

Constructor Summary

Public Constructor
public

constructor(srid: T, x: number, y: number, z: number)

Member Summary

Public Members
public

srid: T

The coordinate reference system identifier.

public

x: number

The x coordinate of the point.

public

y: number

The y coordinate of the point.

public

z: number

The z coordinate of the point or undefined if point is 2-dimensional.

Public Constructors

public constructor(srid: T, x: number, y: number, z: number) source

Params:

NameTypeAttributeDescription
srid T

The coordinate reference system identifier.

x number

The x coordinate of the point.

y number

The y coordinate of the point.

z number
  • optional
  • default: undefined

The z coordinate of the point or undefined if point has 2 dimensions.

Public Members

public srid: T source

The coordinate reference system identifier.

public x: number source

The x coordinate of the point.

public y: number source

The y coordinate of the point.

public z: number source

The z coordinate of the point or undefined if point is 2-dimensional.