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()float distance(graphene.point.Point b, out float dX, out float dY)Computes the distance between `a` and `b`.bool equal(graphene.point.Point b)Checks if the two points `a` and `b` point to the same coordinates.graphene.point.Point init_(float x, float y)Initializes `p` to the given `x` and `y` coordinates.graphene.point.Point initFromPoint(graphene.point.Point src)Initializes `p` with the same coordinates of src.graphene.point.Point initFromVec2(graphene.vec2.Vec2 src)Initializes `p` with the coordinates inside the given #graphenevec2t.void interpolate(graphene.point.Point b, double factor, out graphene.point.Point res)Linearly interpolates the coordinates of `a` and `b` using the given factor.bool near(graphene.point.Point b, float epsilon)Checks whether the two points `a` and `b` are within the threshold of epsilon.void toVec2(out graphene.vec2.Vec2 v)Stores the coordinates of the given #graphenepointt into a #graphenevec2t.graphene.point.Point zero()Returns a point fixed at (0, 0). Returns: a fixed point