tapspace
Version:
A zoomable user interface lib for web apps
19 lines (17 loc) • 347 B
JavaScript
module.exports = function (distance) {
// @Distance:isGreaterThan(distance)
//
// Test if this is greater than the given distance.
//
// Parameters:
// distance
// a Distance
//
// Return
// a boolean
//
if (distance.transitRaw) {
distance = distance.transitRaw(this.basis)
}
return this.dist > distance
}