Since 1.2Optionalproperties: Partial<{}>Checks whether the given triangle t contains the point p.
true if the point is inside the triangle
Checks whether the two given Graphene.Triangle are equal.
true if the triangles are equal
Frees the resources allocated by graphene_triangle_alloc().
Computes the barycentric coordinates
of the given point p.
The point p must lie on the same plane as the triangle t; if the
point is not coplanar, the result of this function is undefined.
If we place the origin in the coordinates of the triangle's A point,
the barycentric coordinates are u, which is on the AC vector; and v
which is on the AB vector:

The returned Graphene.Vec2 contains the following values, in order:
res.x = ures.y = vtrue if the barycentric coordinates are valid
Computes the bounding box of the given Graphene.Triangle.
Computes the coordinates of the midpoint of the given Graphene.Triangle.
The midpoint G is the centroid of the triangle, i.e. the intersection of its medians.
Computes the normal vector of the given Graphene.Triangle.
Computes the plane based on the vertices of the given Graphene.Triangle.
Retrieves the three vertices of the given Graphene.Triangle and returns their coordinates as Graphene.Point3D.
Computes the UV coordinates of the given point p.
The point p must lie on the same plane as the triangle t; if the point
is not coplanar, the result of this function is undefined. If p is null,
the point will be set in (0, 0, 0).
The UV coordinates will be placed in the res vector:
res.x = ures.y = vSee also: graphene_triangle_get_barycoords()
true if the coordinates are valid
Retrieves the three vertices of the given Graphene.Triangle.
Initializes a Graphene.Triangle using the three given arrays of floating point values, each representing the coordinates of a point in 3D space.
an array of 3 floating point values
an array of 3 floating point values
an array of 3 floating point values
the initialized Graphene.Triangle
Initializes a Graphene.Triangle using the three given 3D points.
the initialized Graphene.Triangle
Initializes a Graphene.Triangle using the three given vectors.
the initialized Graphene.Triangle
Staticalloc
A triangle.
Since
1.2