Source code:
fire.require(
function(){
var output = $("#output > pre > code");
var coordinate1 = new fire.gear.geom.Coordinate(10, 20, 10);
var coordinate2 = new fire.gear.geom.Coordinate(15, 22, 0);
var coordinate3 = new fire.gear.geom.Coordinate(15, 22, 0);
output.append("coordinate1: " + coordinate1.toString() + "<br/>");
output.append("coordinate2: " + coordinate2.toString() + "<br/>");
output.append("coordinate3: " + coordinate3.toString() + "<br/>");
var dist2D = coordinate1.distance2D(coordinate2);
output.append("distance (2D): " + dist2D + "<br/>");
var dist = coordinate1.distance(coordinate2);
output.append("distance: " + dist + "<br/>");
output.append("coordinate1 === coordinate2 => " + coordinate1.equals(coordinate2) + "<br/>");
output.append("coordinate3 === coordinate2 => " + coordinate3.equals(coordinate2) + "<br/>");
},{
mode: fire.Mode.BUILD
,otherScripts: []
,modules: [fire.Modules.GEAR]
,relative: "../lib/fire/"
}
);