simd-tools

0.0.1

SIMDTools provides utility functions and extensions for working with SIMD matrices and vectors in Swift.
computer-graphics-tools/simd-tools

What's New

Initial Release

2024-06-19T18:03:55Z

SIMDTools

Platform Compatibility Swift Version

Welcome to the documentation for the SIMDTools Swift package. This package provides utility functions and extensions for working with SIMD matrices and vectors in Swift.

Overview

The simd-tools package includes:

  • Angle struct for representing angles.
  • Extensions for float3x3 and float4x4 to perform various matrix transformations.
  • SIMD2, SIMD3 and SIMD4 components permutations.
  • Utility functions such as clamp, saturate, and interpolate.

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

  • Use SIMDTools in SwiftUI

    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.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Tue Jul 09 2024 09:51:04 GMT-0900 (Hawaii-Aleutian Daylight Time)