Coder Social home page Coder Social logo

swiftish's Introduction

A fully generic Swift vector & matrix library

Carthage compatible

Changelog

Version 4.2.0

  • Default conformance to Hashable
  • Conversion between different types of IntVectors
  • Common aliases for x, y, z, w. For example r, g, b, a.

Version 4.1.0

  • Added IntVector 2, 3, and 4
  • Added bitwise shifts to IntVector
  • Added overflow and underflow operators to IntVector
  • Added conversion initializers between Int and Float vectors

Version 4.0.0

  • Simplified API by removing Integer support, most useful functions require trigonometry or not truncating division.
  • Made functions follow Swift conventions better by making them static methods on the type instead of global functions.
  • Removed the Angle type as it made things more complicated than the benefits it may have provided.
  • Removed the Rectangle type as it was not used in any algorithms and was mostly desinged for use with Integers which were removed.

Version 3.1.2

  • zubco Make sure Float80 is only compiled for Intel

Version 3.1.1

  • zubco added Bounds2 & Bounds3 contains(point:) and intersection(other:) methods.

Version 3.1.0

  • Fix Vector3 xAxis
  • Turn Vector3 axis methods into static properties
  • Simplify Transform3 matrix & inverseMatrix methods to not use conditionals

Version 3.0.0

  • Updated for Swift 4

Version 2.0.0

  • Updated for Swift 3
  • Swift Package Manager support
  • Geometry and intersection tests

Version 1.0.2

  • Forgot to make typealias public
  • Fixed approx to always use <=

Version 1.0.1

  • Started adding tests
  • Added some aliases for common sizes and element types
  • Tightened up the Arithmetic protocols
  • Implemented approximately equal function and operator
  • Made Vector & Matrix classes conform to Printable
  • Verified that a switch statement is the best way to implement subscripting
  • Now have access to the rows of a Matrix

Contact

Justin Kolb
@nabobnick

License

Swiftish is available under the MIT license. See the LICENSE file for more info.

swiftish's People

Contributors

jkolb avatar zubco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swiftish's Issues

[Known issue] Swift Compiler Error

In Xcode Version 9.3 (9E145)

The fallowing files, won't compile because of compiler issue.
Quaternion.swift
Transform3.swift

Reported a bug for that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.