/swift3D

A set of Swift SIMD extensions for 3D programming

Primary LanguageSwiftMIT LicenseMIT

Swift3D

GitHub license CocoaPods GitHub release Carthage compatible Build Status

A set of Swift functions useful for 3D programming. It expand common mathematical functions on SIMD data types. There are also handy functions for projection matrices, quaternions, matrices and vectors conversions. Everything is tested using glm.

Setup

Using Carthage

Add github "adriankrupa/Swift3D" to your Cartfile and run carthage update. If unfamiliar with Carthage then checkout their Getting Started section

Using cocoapods version 0.36.x or greater

Add pod 'Swift3D' to your Podfile and run pod install. Add use_frameworks! to the end of the Podfile. Requires cocoapod version 0.36.x or greater.

Using git submodule

  1. If you are using git then add Dollar as a submodule using git submodule add https://github.com/adriankrupa/Swift3D.git. If not using git download the project using git clone https://github.com/adriankrupa/Swift3D.git in your project folder.
  2. Open the Swift3D folder. Drag Swift3D.xcodeproj, inside the Swift3D folder, into the file navigator of your Xcode project.
  3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
  4. In the tab bar at the top of that window, open the "Build Phases" panel.
  5. Expand the "Link Binary with Libraries" group, and add Swift3D.framework.
  6. In your project file import Swift3D and you can call all of the helper functions.

Bitdeli Badge