Skip to content

Geom.point3()

Description

Creating a point in 3D space.

Syntax

JS
Geom.point3(x: Number, y: Number, z: Number) -> Point3
Geom.point3(p: point, z: Number) -> Point3

Parameters

Parameter Type Default Value Mandatory Description
x Number ✅ x coordinate of the point.
y Number ✅ y coordinate of the point.
z Number ✅ z coordinate 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
1
2
3
4
5
6
7
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:

See Also

Geom.vector()

Last update: 14 August 2025, 18:47