Wikifunctions:Type proposals/Geometrical point
Summary
A big field of functions currently is absent from Wikifunctions - geometrical functions. We already have number functions and trigonometrical functions, but not geometrical.
This type could be used in such functions as, for example, rotate point relative to another point by given angle; get the angle between three points; get the middle point between two points.
Further object types could be created based on this one: segment, polygon, circle, surface, sphere. Other types to be created after this one: vector, line, curve, plane.
Structure
This object type should consist of two real numbers, maybe three: representing a position along x, y and z axis.
Example values
Value …
{
"type": "point",
"value": "x"
{
"type": "float64"
},
"value": "y"
{
"type": "float64"
},
"value": "z"
{
"type": "float64"
},
}
|
Identity
Two points are the same if each of their coordinates (x, y, z) are the same
Display function
How would a value of this type be displayed on Wikifunctions
Point(12.34, -56.78)
Comments
Support as proposer. --Tohaomg (talk) 16:33, 3 May 2025 (UTC)--sign here