Skip to content

Commit

Permalink
Update sdfTests.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jul 9, 2023
1 parent 1e1a100 commit 12b5148
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/vgerTests/sdfTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,15 @@ - (void) testBezierTest {

}

- (void) testBezierCollinear {

float2 a{0,0};
float2 b{1,0.001};
float2 c{2,0};

auto d = sdBezier(float2{1,1}, a, b, c);

XCTAssertEqualWithAccuracy(d, 1.0, 0.001);
}

@end

0 comments on commit 12b5148

Please sign in to comment.