computer-graphics-tools/simd-tools
SIMDTools provides utility functions and extensions for working with SIMD matrices and vectors in Swift.
Overview
The simd-tools package includes:
Anglestruct for representing angles.- Extensions for
float3x3andfloat4x4to perform various matrix transformations. SIMD2,SIMD3andSIMD4components permutations.- Utility functions such as
clamp,saturate, andinterpolate.
Please see the package's documentation for more detailed usage instructions.
Adding the SIMDTools as a Dependency
To use the SIMDTools package, first add it as a dependency:
let package = Package(
// name, platforms, products, etc.
dependencies: [
// other dependencies
.package(url: "https://github.com/computer-graphics-tools/simd-tools", from: "0.0.1"),
],
targets: [
// targets
]
)Swift 5.9 is required in order to use the package.
Tutorials
Learn how to use SIMD matrices to calculate affine transform for rotating SwiftUI views. Get started with SIMDTools by building the demo app RotateImage.
Usage
License
SIMDTools is licensed under MIT license.
Package Metadata
Repository: computer-graphics-tools/simd-tools
Homepage: https://swiftpackageindex.com/computer-graphics-tools/simd-tools
Stars: 20
Forks: 5
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
Topics: computer-graphics, linear-algebra, swift
README: README.md