Use NaN as default value for Z

This commit is contained in:
Tom Payne
2013-03-20 12:02:40 +01:00
parent d3ea5236ef
commit 7755555cc3
+1 -1
View File
@@ -28,7 +28,7 @@ ol.Coordinate = function(x, y, opt_z) {
/** /**
* @type {number} * @type {number}
*/ */
this.z = opt_z || 0; this.z = goog.isDef(opt_z) ? opt_z : NaN;
}; };
goog.inherits(ol.Coordinate, goog.math.Vec2); goog.inherits(ol.Coordinate, goog.math.Vec2);