mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-13 07:06:06 +09:00
wire pieces will be 'lit' when it receives power (power propagation not implemented)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user