Geom.point3()
Description
Creating a point in 3D space.
Syntax
JSGeom.point3(x: Number, y: Number, z: Number) -> Point3
Geom.point3(p: point, z: Number) -> Point3
 
Parameters
| Parameter | Type | Default Value | Mandatory | Description | 
| x | Number | — |  | xcoordinate of the point. | 
| y | Number | — |  | ycoordinate of the point. | 
| z | Number | — |  | zcoordinate of the point. | 
| p | point | — |  | Point with coordinates [x,y]. | 
Return value
| Type | Description | 
| Point3 | Object of type Point3, representing a point in three-dimensional space. | 
Example
| JS | 
|---|
|  | let p1 = Geom.point3()
console.info(p1) // output:
let p2 = Geom.point3(10, 10, 10)
console.info(p2) // output:
let pt = Qt.point(10, 10)
let p3 = Geom.point3(pt, 10)
console.info(p2) // output:
 |