Add corner chamfers to orx-shapes

This commit is contained in:
Edwin Jakobs
2020-03-24 19:35:06 +01:00
parent af4fbdfc08
commit dde54acac2
3 changed files with 285 additions and 0 deletions

View 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)
}