A point with three components: X, Y, and Z.
xthe X coordinate
ythe Y coordinate
zthe Z coordinate
Allocates a <GraphenePoint3D> structure.
Returned: a <GraphenePoint3D>.
the newly allocated structure. Use point3d:free to free the resources allocated by this function.
Computes the cross product of the two given
<GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the cross product
Computes the distance between the two given
<GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for the distance components on the X, Y, and Z axis
Returned: a real number.
the distance between two points
Computes the dot product of the two given
<GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Returned: a real number.
the value of the dot product
Checks whether two given points are equal.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Returned: a boolean.
true if the points are equal
Frees the resources allocated via point3d:alloc.
Passed: a <GraphenePoint3D>.
Initializes a <GraphenePoint3D> with the given
coordinates.
Passed: a <GraphenePoint3D>.
the <GraphenePoint3D> to initialize
Passed: a real number.
the X coordinate of the point
Passed: a real number.
the Y coordinate of the point
Passed: a real number.
the Z coordinate of the point
Returned: a <GraphenePoint3D>.
the initialized <GraphenePoint3D>
Initializes a <GraphenePoint3D> using the
coordinates of another <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Returned: a <GraphenePoint3D>.
the initialized point
Initializes a <GraphenePoint3D> using the
components of a <GrapheneVec3>.
Passed: a <GraphenePoint3D>.
Passed: a <GrapheneVec3>.
Returned: a <GraphenePoint3D>.
the initialized <GraphenePoint3D>
Linearly interpolates each component of self and b using the provided factor, and places the result in res.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a real number.
the interpolation factor
Passed, filled in, and returned: a
<GraphenePoint3D>.
the return location for the interpolated
<GraphenePoint3D>
Computes the length of the vector represented by the coordinates of the
given <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Returned: a real number.
the length of the vector represented by the point
Checks whether the two points are near each other, within an epsilon factor.
Passed: a <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed: a real number.
fuzzyness factor
Returned: a boolean.
true if the points are near each other
Computes the normalization of the vector represented by the coordinates
of the given <GraphenePoint3D>.
Passed: a <GraphenePoint3D>.
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the normalized
<GraphenePoint3D>
Normalizes the coordinates of a <GraphenePoint3D>
using the given viewport and clipping planes.
The coordinates of the resulting <GraphenePoint3D>
will be in the [ -1, 1 ] range.
Passed: a <GraphenePoint3D>.
Passed: a <GrapheneRect>.
a <GrapheneRect> representing a viewport
Passed: a real number.
the coordinate of the near clipping plane, or 0 for the default near clipping plane
Passed: a real number.
the coordinate of the far clipping plane, or 1 for the default far clipping plane
Passed, filled in, and returned: a
<GraphenePoint3D>.
the return location for the normalized
<GraphenePoint3D>
Scales the coordinates of the given
<GraphenePoint3D> by the given factor.
Passed: a <GraphenePoint3D>.
Passed: a real number.
the scaling factor
Passed, filled in, and returned: a
<GraphenePoint3D>.
return location for the scaled point
Stores the coordinates of a <GraphenePoint3D> into
a <GrapheneVec3>.
Passed: a <GraphenePoint3D>.
Passed, filled in, and returned: a <GrapheneVec3>.
return location for a <GrapheneVec3>
Retrieves a constant point with all three coordinates set to 0.
Returned: a <GraphenePoint3D>.
a zero point