Articles and Tutorials

GSPoint

A coordinate that may be used to specify either a pixel coordinate in the map image's coordinate space or a real world coordinate expressed as an NZMG point.
Object
|
+--GSPoint
Field Summary
 Number x
          This point's x coordinate.
 Number y
          This point's y coordinate.
 
Constructor Summary
GSPoint (x, y)
            Creates a new GSPoint.
 
Method Summary
 String toString()
           Outputs this point's properties as a String

Field Detail

x

Number x
    This point's x coordinate. May either be an integer type if this point represents a pixel coordinate or a floating point type if an NZMG coordinate

y

Number y
    This point's y coordinate. May either be an integer type if this point represents a pixel coordinate or a floating point type if an NZMG coordinate
Constructor Detail

GSPoint

GSPoint(x, y)
    Creates a new GSPoint. The new point may optionally be initialized with its x and y values.
Method Detail

toString

String toString()
    Outputs this point's properties as a String
  •  
      this point's properties as a String
  • Returns: