Instance Method

sourcePositionAtIndex:

Returns the source position of a vertex.

Declaration

- (vector_float2)sourcePositionAtIndex:(NSInteger)index;

Parameters

index

The index of the position vertex to query.

Return Value

The normalized position of the specified vertex in sourcePositions.

Discussion

The specified index must be between 0 and the warp geometry grid's vertexCount - 1.

See Also

Accessing or Setting Grid Vertices

- destPositionAtIndex:

Returns the destination position of a vertex.

- gridByReplacingDestPositions:

Returns a copy of the receiver with the destination positions replaced by a specified array.

- gridByReplacingSourcePositions:

Returns a copy of the receiver with the source positions replaced by a specified array.