Instance Method

replacingByDestinationPositions(positions:)

Returns a copy of this grid, updated with the argument destination positions.

Declaration

func replacingByDestinationPositions(positions destination: [SIMD2<Float>]) -> SKWarpGeometryGrid

Return Value

A new warp geometry grid.

See Also

Accessing or Setting Grid Vertices

func destPosition(at: Int) -> vector_float2

Returns the destination position of a vertex.

func replacingBySourcePositions(positions: [SIMD2<Float>]) -> SKWarpGeometryGrid

Returns a copy of this grid, updated with the argument source positions.

func sourcePosition(at: Int) -> vector_float2

Returns the source position of a vertex.