Click or drag to resize
AB4D logo

CommonUtilsGetPositionFromVertexBufferT Method

Gets a single position from the specified vertex buffer array. If vertex buffer type is not supported (not defined by DXEngine) then an exception is thrown. To get 3 positions use the GetPositionsFromVertexBufferT(T, Int32, Int32, Int32, Vector3, Vector3, Vector3) method.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public static Vector3 GetPositionFromVertexBuffer<T>(
	T[] vertexBuffer,
	int index
)
where T : struct, new()

Parameters

vertexBuffer  T
vertex buffer array
index  Int32
index the position

Type Parameters

T
type of vertex buffer

Return Value

Vector3
position as Vector3
See Also