One Logo Pool Ball
SpriteKit · IOS API REFERENCE

SKWarpGeometryGrid

class · iOS 10.0+ · SDK 27.1

class SKWarpGeometryGrid

Members (10)

init · iOS 10.0+

init

TypeScript
static initColumnsRows(cols: number, rows: number): SKWarpGeometryGrid
Swift declaration
convenience init(columns cols: Int, rows: Int)
method · iOS 10.0+

destPosition

TypeScript
destPosition(index: number): SDKHandle
Swift declaration
func destPosition(at index: Int) -> vector_float2
init · iOS 10.0+

init

TypeScript
static initCoder(aDecoder: _Foundation_NSCoder): (SKWarpGeometryGrid) | null
Swift declaration
init?(coder aDecoder: NSCoder)
method · iOS 10.0+

sourcePosition

TypeScript
sourcePosition(index: number): SDKHandle
Swift declaration
func sourcePosition(at index: Int) -> vector_float2
get · iOS 10.0+

numberOfColumns

TypeScript
get numberOfColumns(): number
Swift declaration
var numberOfColumns: Int { get }
get · iOS 10.0+

numberOfRows

TypeScript
get numberOfRows(): number
Swift declaration
var numberOfRows: Int { get }
get · iOS 10.0+

vertexCount

TypeScript
get vertexCount(): number
Swift declaration
var vertexCount: Int { get }
method · iOS 10.0+

replacingBySourcePositions

TypeScript
replacingBySourcePositions(source: Array<SDKHandle>): SKWarpGeometryGrid
Swift declaration
func replacingBySourcePositions(positions source: [SIMD2<Float>]) -> SKWarpGeometryGrid
method · iOS 10.0+

replacingByDestinationPositions

TypeScript
replacingByDestinationPositions(destination: Array<SDKHandle>): SKWarpGeometryGrid
Swift declaration
func replacingByDestinationPositions(positions destination: [SIMD2<Float>]) -> SKWarpGeometryGrid
init · iOS 10.0+

init

TypeScript
static initColumnsRowsSourcePositionsDestinationPositions(columns: number, rows: number, sourcePositions?: Array<SDKHandle>, destinationPositions?: Array<SDKHandle>): SKWarpGeometryGrid
Swift declaration
convenience init(columns: Int, rows: Int, sourcePositions: [SIMD2<Float>] = [SIMD2<Float>](), destinationPositions: [SIMD2<Float>] = [SIMD2<Float>]())

Create a grid of the specified dimensions, source and destination positions. Grid dimensions (columns and rows) refer to the number of faces in each dimension. The number of vertices required for a given dimension is equal to (cols + 1) * (rows + 1). SourcePositions are normalized (0.0 - 1.0) coordinates to determine the source content. DestinationPositions are normalized (0.0 - 1.0) positional coordinates with respect to the node's native size. Values outside the (0.0-1.0) range are perfectly valid and correspond to positions outside of the native undistorted bounds. Source and destination positions are provided in row-major order starting from the top-left. For example the indices for a 2x2 grid would be as follows: [0]---[1]---[2] | | | [3]---[4]---[5] | | | [6]---[7]---[8] - Parameter columns: the number of columns to initialize the SKWarpGeometryGrid with - Parameter rows: the number of rows to initialize the SKWarpGeometryGrid with - Parameter sourcePositions: the source positions for the SKWarpGeometryGrid to warp from - Parameter destinationPositions: the destination positions for SKWarpGeometryGrid to warp to

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SKWarpGeometryGrid.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All SpriteKit types →