Features that are reckoned are working (which means the full features are WIP)

This commit is contained in:
minjaesong
2017-05-09 02:40:22 +09:00
parent 79c2025509
commit e395dc3781
3 changed files with 51 additions and 31 deletions

View File

@@ -366,8 +366,8 @@ class Vector2 {
* *
* @return [Vector2] this vector
*/
operator fun plus(vector: Vector2): Vector2 {
return Vector2(this.x + vector.x, this.y + vector.y)
operator fun plus(vector: Vector2?): Vector2 {
return Vector2(this.x + (vector?.x ?: 0.0), this.y + (vector?.y ?: 0.0))
}
operator fun plusAssign(vector: Vector2) {