Package: graphene

Function graphene:triangle-midpoint

Lambda List

graphene:triangle-midpoint (triangle result)

Arguments

triangle -- a graphene:triangle-t instance
result -- a graphene:point3d-t instance for the coordinates of the midpoint

Return Value

The graphene:point3d-t instance with the coordinates of the midpoint.

Details

Computes the coordinates of the midpoint of the given triangle. The midpoint is the centroid of the triangle, i.e. the intersection of its medians.
 

See also

#2023-12-8