point

fun IIndexedPolygon.point(vertexData: IVertexData, barycentric: Vector3): Point(source)

Computes a Point by interpolating vertex attributes from a 3D polygon using barycentric coordinates.

Return

A Point containing interpolated vertex attributes including position, texture coordinates, color, normal, tangent, and bitangent.

Parameters

vertexData

The vertex data containing positions, texture coordinates, colors, normals, tangents, and bitangents.

barycentric

The barycentric coordinates used to interpolate the vertex attributes.