Commit Graph

30 Commits

Author SHA1 Message Date
Tim Schaub
6b018bbaf9 Testing segment intersection with extent
If needed, this function can be modified to take two additional coorinates that will be set to the intersection points.
2014-02-25 21:47:57 -07:00
Tim Schaub
cb11959f01 Determining coordinate relationship to extent 2014-02-25 21:47:57 -07:00
Tim Schaub
2537fb4574 Fixing test failure on Chrome 33 2014-02-24 14:53:00 -07:00
Tom Payne
784f3500f2 Make ol.extent.buffer return an extent instead of mutating 2014-01-09 15:27:56 +01:00
Tim Schaub
b0cea7139b Function to buffer an extent 2013-11-04 13:21:11 -07:00
Tom Payne
aa44547565 Remove ol.extent.toString 2013-09-20 12:14:41 +01:00
Éric Lemoine
70c66d4cf1 Add ol.extent.touches 2013-09-16 15:51:12 +02:00
Tim Schaub
e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub
dbccb8b231 Function for cloning extents 2013-09-14 21:11:52 -06:00
Tim Schaub
fcf00dea8b New structure for extent: [minCoord, maxCoord] 2013-09-14 21:11:52 -06:00
Frederic Junod
a1a7e21f92 Redefine ol.Size to be Array.<number> 2013-06-01 10:22:06 +02:00
Tom Payne
46553c719c Rename ol.projection to ol.proj 2013-05-30 18:55:58 +02:00
Tom Payne
16f70ba1a0 Replace ol.Extent and ol.Rectangle with Array.<number> 2013-04-19 09:32:11 +02:00
Tom Payne
02196c94b5 Redefine ol.Coordinate to be Array.<number> 2013-04-05 12:30:37 +02:00
Tobias Bieniek
89ab68cde7 Replaced jasmine testing framework by mocha, expect.js and sinon
as discussed in #319
2013-03-13 04:32:43 +01:00
Tom Payne
ed787ba79c Add ol.Extent.getForView2DAndSize 2013-03-10 15:51:08 +01:00
Tom Payne
21d34f1cc8 Rename projection functions for a friendlier API
The following functions are renamed:

getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform

With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Tom Payne
df5f74b3c0 Add missing requires to specs 2013-03-04 20:02:55 +01:00
Tim Schaub
7a5e6a06d8 Make transform functions work with arrays
Instead of working with ol.Coordinate instances, transform functions work with arrays.  This is in anticipation of using transform functions to transform large arrays of vertex coordinate values.  The ol.projection.transform and ol.projection.transformWithCodes are slightly more convenient functions for dealing with ol.Coordinate instances.  Whether we make this more consistent with the use of functions returned by ol.projection.getTransform is up for discussion.
2013-03-03 19:27:57 +01:00
Tim Schaub
0df692e159 Lint in the tests 2013-03-03 17:58:03 +01:00
Tom Payne
fcc620af7d Separate ol.projection module from ol.Projection class 2013-03-03 13:09:13 +01:00
Éric Lemoine
35a6cac37f Add containsExtent to ol.Extent 2013-02-14 23:36:36 +01:00
Éric Lemoine
b6ed5f2164 Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Tim Schaub
3ccfaebcfc Punctuated 2013-01-23 22:18:00 -07:00
Tim Schaub
afb9add911 Checked with third-party tool 2013-01-23 22:12:17 -07:00
Tim Schaub
0845dea366 Care with transform
Since the transform method takes an arbitrary transform function, new coordinates may not be ordered in the same way as the originals.
2013-01-23 22:03:08 -07:00
Tom Payne
228e5a8dbf Move requires to end of the file to ensure tests run even if goog.require fails 2012-09-26 19:40:16 +02:00
Tom Payne
c956ab3482 Relax unit tests as PhantomJS generates the wrong result on Mac OS X 2012-09-25 11:32:31 +02:00
Éric Lemoine
f0ff1faa73 fix ol.Extent tests 2012-09-25 00:18:25 +02:00
Éric Lemoine
6fab51bde0 Jasmine tests for ol.Extent 2012-09-25 00:13:28 +02:00