Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsCalculateTangentVectors Method

CalculateTangentVectors returns a Vector3 array that represents tangent vectors calculated from specified mesh data.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector3[] CalculateTangentVectors(
	Vector3[] positions,
	Vector3[] normals,
	Vector2[] textureCoordinates,
	int[] triangleIndices
)

Parameters

positions  Vector3
positions as Vector3[]
normals  Vector3
normals as Vector3[]
textureCoordinates  Vector2
textureCoordinates as Vector2[]
triangleIndices  Int32
triangleIndices as int[]

Return Value

Vector3
Vector3 array that represents tangent vectors
See Also