public override double Distance(Geometry operand1, Geometry operand2) { UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator(); operand1.SendTo(calc); operand2.SendTo(calc); return(calc.sum); }
/// <summary>Indicates the Geometry LineString's length.</summary> /// <returns>The operation result.</returns> /// <param name="operand">The Operand.</param> public override double Length(Geometry operand) { UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator(); var tmp = ((GeometryLineString)operand).Points; tmp[0].SendTo(calc); tmp[1].SendTo(calc); return(calc.sum); }
/// <summary>Indicates the Geometry LineString's length.</summary> /// <returns>The operation result.</returns> /// <param name="operand">The Operand.</param> public override double Length(Geometry operand) { UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator(); var tmp = ((GeometryLineString)operand).Points; tmp[0].SendTo(calc); tmp[1].SendTo(calc); return calc.sum; }
public override double Distance(Geometry operand1, Geometry operand2) { UnitTestGeometryDistanceCalculator calc = new UnitTestGeometryDistanceCalculator(); operand1.SendTo(calc); operand2.SendTo(calc); return calc.sum; }