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
Support integral for many potential future functions. Diamondarmorstev (talk) 00:59, 30 September 2025 (UTC)- If the type is limited to 2D, it would be better served by WF:Type_proposals/complex128. If it's N-dimensional, just use lists like the few vector (matrix) functions that already exist. YoshiRulz (talk) 19:15, 27 November 2025 (UTC)
Oppose on the basis of strong preference towards the use of rational numbers Feeglgeef (talk) 14:02, 7 April 2026 (UTC)
- Would you be willing to propose a new point-type with rational numbers? So9q (talk) 16:53, 22 June 2026 (UTC)
