Class Point

Calculation of the properties of positions (points)


Description

The class Point calculates properties of points in the coordinate system.

The the parameters \(x \) and \(y \) are default arguments. This means that the position can be passed as an argument without a command string (see example below).


Properties

The following properties can be queried as a result or passed as an argument.

Symbols

Description

x x-Position default
y y-Position defaut
p Distance to the 0-point  
α (alpha) Angle in the coordinate system  

Syntax

Object = Point (x, y)

Object = Point ("arg names", arguments)

Value = Point ("get -> arg names", arguments)


Example

Calculation of all properties with the coordinates \(x \) and \(y \).


Calculation of all properties with the position \(x \) and the angle \(α \).


Display of the distance \(p \) from the object \(a \).


Calculation of the angle \(α \) from the \(x, y \) coordinates.