class Proj4::Point

Attributes

lat[RW]
lat=[RW]
lon[RW]
lon=[RW]
x[RW]
y[RW]
z[RW]

Public Class Methods

new(x, y, z = nil) click to toggle source
# File lib/ffi-proj4/point.rb, line 8
def initialize(x, y, z = nil)
  @x, @y, @z = x, y, z
end

Public Instance Methods

to_deg() click to toggle source
# File lib/ffi-proj4/point.rb, line 23
def to_deg
  self.dup.to_deg!
end
to_deg!() click to toggle source
# File lib/ffi-proj4/point.rb, line 17
def to_deg!
  self.x = rad_to_deg(self.x)
  self.y = rad_to_deg(self.y)
  self
end
to_rad() click to toggle source
# File lib/ffi-proj4/point.rb, line 33
def to_rad
  self.dup.to_rad!
end
to_rad!() click to toggle source
# File lib/ffi-proj4/point.rb, line 27
def to_rad!
  self.x = deg_to_rad(self.x)
  self.y = deg_to_rad(self.y)
  self
end