init
TypeScriptstatic initColumnsRows(cols: number, rows: number): SKWarpGeometryGridSwift declarationconvenience init(columns cols: Int, rows: Int)class · iOS 10.0+ · SDK 27.1
class SKWarpGeometryGridstatic initColumnsRows(cols: number, rows: number): SKWarpGeometryGridSwift declarationconvenience init(columns cols: Int, rows: Int)destPosition(index: number): SDKHandleSwift declarationfunc destPosition(at index: Int) -> vector_float2static initCoder(aDecoder: _Foundation_NSCoder): (SKWarpGeometryGrid) | nullSwift declarationinit?(coder aDecoder: NSCoder)sourcePosition(index: number): SDKHandleSwift declarationfunc sourcePosition(at index: Int) -> vector_float2get numberOfColumns(): numberSwift declarationvar numberOfColumns: Int { get }get numberOfRows(): numberSwift declarationvar numberOfRows: Int { get }get vertexCount(): numberSwift declarationvar vertexCount: Int { get }replacingBySourcePositions(source: Array<SDKHandle>): SKWarpGeometryGridSwift declarationfunc replacingBySourcePositions(positions source: [SIMD2<Float>]) -> SKWarpGeometryGridreplacingByDestinationPositions(destination: Array<SDKHandle>): SKWarpGeometryGridSwift declarationfunc replacingByDestinationPositions(positions destination: [SIMD2<Float>]) -> SKWarpGeometryGridstatic initColumnsRowsSourcePositionsDestinationPositions(columns: number, rows: number, sourcePositions?: Array<SDKHandle>, destinationPositions?: Array<SDKHandle>): SKWarpGeometryGridSwift declarationconvenience 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
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)