wire pieces will be 'lit' when it receives power (power propagation not implemented)

This commit is contained in:
minjaesong
2021-08-09 17:28:27 +09:00
parent a9f46613a2
commit 1754c619f5
7 changed files with 35 additions and 9 deletions

View File

@@ -536,6 +536,13 @@ class Vector2 {
val isZero: Boolean
get() = Math.abs(this.x) <= Epsilon.E && Math.abs(this.y) <= Epsilon.E
/**
* Returns false if this [Vector2] is the zero [Vector2].
* @return boolean
*/
val isNotZero: Boolean
get() = !isZero
/**
* Negates this [Vector2].
* @return [Vector2] this vector