Files
PerspectiveTransform/Example/Specs/VectorProjectionSpec.swift
Paul Zabelin 8509c89869 split Framework Unit Specs
from Application Specs
2018-02-19 20:34:28 -08:00

18 lines
422 B
Swift

import Quick
import Nimble
import simd
class VectorProjectionSpec: QuickSpec {
override func spec() {
describe("vector projection") {
it("should be 0 orthogonally") {
let v12 = vector_float2(1,0)
let v23 = vector_float2(0,1)
let p = project(v12, v23)
expect(p.x) == 0
expect(p.y) == 0
}
}
}
}