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.
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.
- 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 usinggit clone https://github.com/adriankrupa/Swift3D.git
in your project folder. - Open the Swift3D folder. Drag Swift3D.xcodeproj, inside the Swift3D folder, into the file navigator of your Xcode project.
- 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.
- In the tab bar at the top of that window, open the "Build Phases" panel.
- Expand the "Link Binary with Libraries" group, and add Swift3D.framework.
- In your project file
import Swift3D
and you can call all of the helper functions.