Calculates the distance between two points in a coordinate system

The endpoints of the distance are defined with two objects of the class Point

Syntax

Distance (Point(x,y), Point(x,y))

Example

Distance(Point(1,5),Point(4,8))=4.24

Description

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.

Examples

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