graphene.point3_d

Module for [Point3D] struct

struct Point3D

Types 1

structPoint3D

A point with three components: X, Y, and Z.

Fields
float xthe X coordinate
float ythe Y coordinate
float zthe Z coordinate
Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
void * boxCopy() nothrow
void cross(graphene.point3_d.Point3D b, out graphene.point3_d.Point3D res) nothrowComputes the cross product of the two given #graphene_point3d_t.
float distance(graphene.point3_d.Point3D b, out graphene.vec3.Vec3 delta) nothrowComputes the distance between the two given #graphene_point3d_t.
float dot(graphene.point3_d.Point3D b) nothrowComputes the dot product of the two given #graphene_point3d_t.
bool equal(graphene.point3_d.Point3D b) nothrowChecks whether two given points are equal.
graphene.point3_d.Point3D init_(float x, float y, float z) nothrowInitializes a #graphene_point3d_t with the given coordinates.
graphene.point3_d.Point3D initFromPoint(graphene.point3_d.Point3D src) nothrowInitializes a #graphene_point3d_t using the coordinates of another #graphene_point3d_t.
graphene.point3_d.Point3D initFromVec3(graphene.vec3.Vec3 v) nothrowInitializes a #graphene_point3d_t using the components of a #graphene_vec3_t.
void interpolate(graphene.point3_d.Point3D b, double factor, out graphene.point3_d.Point3D res) nothrowLinearly interpolates each component of `a` and `b` using the provided factor, and places the result in res.
float length() nothrowComputes the length of the vector represented by the coordinates of the given #graphene_point3d_t. Returns: the length of the vector represented by the point
bool near(graphene.point3_d.Point3D b, float epsilon) nothrowChecks whether the two points are near each other, within an epsilon factor.
void normalize(out graphene.point3_d.Point3D res) nothrowComputes the normalization of the vector represented by the coordinates of the given #graphene_point3d_t.
void normalizeViewport(graphene.rect.Rect viewport, float zNear, float zFar, out graphene.point3_d.Point3D res) nothrowNormalizes the coordinates of a #graphene_point3d_t using the given viewport and clipping planes.
void scale(float factor, out graphene.point3_d.Point3D res) nothrowScales the coordinates of the given #graphene_point3d_t by the given factor.
void toVec3(out graphene.vec3.Vec3 v) nothrowStores the coordinates of a #graphene_point3d_t into a #graphene_vec3_t.
graphene.point3_d.Point3D zero() static nothrowRetrieves a constant point with all three coordinates set to 0. Returns: a zero point