Structures
The following structures are available globally.
-
A 3x3 matrix. Conforms to Equatable, MatrixBase, ConstantSizeMatrix, and SquareMatrix. Conforms to MatrixOperationsBase by the extensions in VariableSizeMatrix/.
See moreDeclaration
Swift
public struct Matrix3Base<MatrixType>: Equatable, MatrixBase, ConstantSizeMatrix, SquareMatrix where MatrixType: MatrixElementType
-
A 4x4 matrix. Conforms to Equatable, MatrixBase, ConstantSizeMatrix, and SquareMatrix. Conforms to MatrixOperationsBase by the extensions in VariableSizeMatrix.
See moreDeclaration
Swift
public struct Matrix4Base<MatrixType>: Equatable, MatrixBase, ConstantSizeMatrix, SquareMatrix where MatrixType: MatrixElementType
-
A matrix whose dimensions are determined at runtime.
See moreDeclaration
Swift
public struct VariableSizeMatrix<MatrixType> : MatrixOperationsBase where MatrixType : Addable, MatrixType : Multiplicable, MatrixType : Numeric
-
An iterator that iterates over pairs of elements in
firstSequenceandsecondSequence.secondSequencemust not destructively consume its contents.For example, the first element generated is
(firstSequence[0], secondSequence[0]), the second element is(firstSequence[0], secondSequence[1]), all the way to(firstSequence[0]. secondSequence.last), at which point the next element is(firstSequence[1], secondSequence[0]).for (x, y) in pairs(firstSequence, secondSequence) { //... }is equivalent to
See morefor x in firstSequence { for y in secondSequence { //... } }Declaration
Swift
public struct PairIterator<T, U> : Sequence, IteratorProtocol where T : Sequence, U : Sequence
Structures Reference