graphene.point
Module for [Point] struct
struct Point
Types 1
structPoint
A point with two coordinates.
Fields
float xthe X coordinate of the pointfloat ythe Y coordinate of the pointMethods
void * boxCopy() nothrowfloat distance(graphene.point.Point b, out float dX, out float dY) nothrowComputes the distance between `a` and `b`.bool equal(graphene.point.Point b) nothrowChecks if the two points `a` and `b` point to the same coordinates.graphene.point.Point init_(float x, float y) nothrowInitializes `p` to the given `x` and `y` coordinates.graphene.point.Point initFromPoint(graphene.point.Point src) nothrowInitializes `p` with the same coordinates of src.graphene.point.Point initFromVec2(graphene.vec2.Vec2 src) nothrowInitializes `p` with the coordinates inside the given #graphene_vec2_t.void interpolate(graphene.point.Point b, double factor, out graphene.point.Point res) nothrowLinearly interpolates the coordinates of `a` and `b` using the given factor.bool near(graphene.point.Point b, float epsilon) nothrowChecks whether the two points `a` and `b` are within the threshold of epsilon.void toVec2(out graphene.vec2.Vec2 v) nothrowStores the coordinates of the given #graphene_point_t into a #graphene_vec2_t.