RedCrab Calculator

Distance - distance between two points

  • Calculates the distance between two points in a coordinate system

  • The endpoints of the distance are defined with two objects of the class Point
  • Distance (Point(x,y), Point(x,y))
  • Distance(Point(1,5),Point(4,8))= 4.24

  • By using the point objects, the distance can also be calculated with arguments other than x / y. The class Point contains own methods for the calculation of the properties.

  • Suppose that only the x-coordinates are known. y is unknown, but we can determine the angles from the 0 point

  • We determine for Point a an angle to the x-axis of 78.69 ° and for Point b 63.43 °

  • In the initialization of Point, a command string must be inserted to indicate that the arguments are the position x and the angle alpha

Distance(Point("x,α",1,78.69), Point("x,α",4,63.43))=4.24


Available in RedCrab PLUS

Distance Distance between two points
Grad Gradient of a straight line
Position Position on the line of two points 


  Products RedCrab Calculator RedCRab Manual  
      RedCrab Software - Singapore - Sengkang West Way