Instance Method

replacingBySourcePositions(positions:)

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

Declaration

func replacingBySourcePositions(positions source: [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 replacingByDestinationPositions(positions: [SIMD2<Float>]) -> SKWarpGeometryGrid

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

func sourcePosition(at: Int) -> vector_float2

Returns the source position of a vertex.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software