Sha256: ab772151012ea6db8cd11f32aa2e2ad495443dac20dfd0573d1790564101ac85
Contents?: true
Size: 1.65 KB
Versions: 14
Compression:
Stored size: 1.65 KB
Contents
/* -*- coding: utf-8; c-file-style: "ruby" -*- */ /* Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "rb-grn.h" VALUE rb_cGrnTokyoGeoPoint; VALUE rb_cGrnWGS84GeoPoint; VALUE rb_grn_tokyo_geo_point_new (int latitude, int longitude) { return rb_grn_tokyo_geo_point_new_raw(INT2NUM(latitude), INT2NUM(longitude)); } VALUE rb_grn_wgs84_geo_point_new (int latitude, int longitude) { return rb_grn_wgs84_geo_point_new_raw(INT2NUM(latitude), INT2NUM(longitude)); } VALUE rb_grn_tokyo_geo_point_new_raw (VALUE latitude, VALUE longitude) { return rb_funcall(rb_cGrnTokyoGeoPoint, rb_intern("new"), 2, latitude, longitude); } VALUE rb_grn_wgs84_geo_point_new_raw (VALUE latitude, VALUE longitude) { return rb_funcall(rb_cGrnWGS84GeoPoint, rb_intern("new"), 2, latitude, longitude); } void rb_grn_init_geo_point (VALUE mGrn) { rb_cGrnTokyoGeoPoint = rb_const_get(mGrn, rb_intern("TokyoGeoPoint")); rb_cGrnWGS84GeoPoint = rb_const_get(mGrn, rb_intern("WGS84GeoPoint")); }
Version data entries
14 entries across 14 versions & 1 rubygems