Add corner chamfers to orx-shapes
This commit is contained in:
7
orx-shapes/src/test/kotlin/Assertions.kt
Normal file
7
orx-shapes/src/test/kotlin/Assertions.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
import org.amshove.kluent.shouldBeInRange
|
||||
import org.openrndr.math.Vector2
|
||||
|
||||
infix fun Vector2.`should be near`(other: Vector2) {
|
||||
x shouldBeInRange (other.x - 0.00001..other.x + 0.00001)
|
||||
y shouldBeInRange (other.y - 0.00001..other.y + 0.00001)
|
||||
}
|
||||
Reference in New Issue
Block a user