Since 1.0Optionalproperties: Partial<{ x: number; y: number; z: number }>Computes the distance between the two given Graphene.Point3D.
the distance between two points
Computes the dot product of the two given Graphene.Point3D.
the value of the dot product
Checks whether two given points are equal.
true if the points are equal
Frees the resources allocated via graphene_point3d_alloc().
Initializes a Graphene.Point3D with the given coordinates.
the X coordinate of the point
the Y coordinate of the point
the Z coordinate of the point
the initialized Graphene.Point3D
Initializes a Graphene.Point3D using the coordinates of another Graphene.Point3D.
the initialized point
Initializes a Graphene.Point3D using the components of a Graphene.Vec3.
the initialized Graphene.Point3D
Computes the length of the vector represented by the coordinates of the given Graphene.Point3D.
the length of the vector represented by the point
Checks whether the two points are near each other, within
an epsilon factor.
fuzzyness factor
true if the points are near each other
Computes the normalization of the vector represented by the coordinates of the given Graphene.Point3D.
Normalizes the coordinates of a Graphene.Point3D using the given viewport and clipping planes.
The coordinates of the resulting Graphene.Point3D will be in the [ -1, 1 ] range.
a Graphene.Rect representing a viewport
the coordinate of the near clipping plane, or 0 for the default near clipping plane
the coordinate of the far clipping plane, or 1 for the default far clipping plane
Scales the coordinates of the given Graphene.Point3D by
the given factor.
the scaling factor
Stores the coordinates of a Graphene.Point3D into a Graphene.Vec3.
StaticallocStaticzeroRetrieves a constant point with all three coordinates set to 0.
A point with three components: X, Y, and Z.
Since
1.0