Since 1.2Optionalproperties: Partial<{}>Since 1.2contains_Checks whether the given triangle t contains the point p.
true if the point is inside the triangle
Since 1.2equalChecks whether the two given Graphene.Triangle are equal.
true if the triangles are equal
Since 1.2freeSince 1.2get_Since 1.2get_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
Since 1.2get_Since 1.2get_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.
Since 1.2get_Since 1.2get_Since 1.2get_Retrieves the three vertices of the given Graphene.Triangle and returns their coordinates as Graphene.Point3D.
Since 1.10get_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
Since 1.2get_Since 1.10init_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
Since 1.2init_Initializes a Graphene.Triangle using the three given 3D points.
the initialized Graphene.Triangle
Since 1.2init_Initializes a Graphene.Triangle using the three given vectors.
the initialized Graphene.Triangle
Staticalloc
A triangle.
Since
1.2