Class BlendSpace2D
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
Finds what a point in a triangulated 2D blend space blends between: the corners of the triangle it is in, or the nearest edge of the hull around the triangles when it is outside them all.
csharp
public static class BlendSpace2DInheritance
object ← BlendSpace2D
Methods
CalculateWeights(Vector2[], uint[], uint[], Vector2, ref Result)
Calculates the sources and weights for a point.
csharp
public static void CalculateWeights(Vector2[] points, uint[] indices, uint[] hullIndices, Vector2 point, ref BlendSpace2D.Result result)Parameters
points Vector2[]
The position of each source in the blend space.
indices uint[]
The triangles over the points, three indices each.
hullIndices uint[]
The closed outline around the triangles, as point indices.
point Vector2
The point to blend at.
result BlendSpace2D.Result
Receives the sources and weights.

