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: Integer | number, x: number, y: number, z: number)

Member Summary

Public Members
public

srid: *

public

x: *

public

y: *

public

z: *

Method Summary

Public Methods
public

toString(): *

Public Constructors

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

Params:

NameTypeAttributeDescription
srid Integer | number

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 y coordinate of the point or undefined if point has 2 dimensions.

Public Members

public srid: * source

public x: * source

public y: * source

public z: * source

Public Methods

public toString(): * source

Return:

*