project uses tabs instead of spaces(as in CONTRIBUTING.md)

This commit is contained in:
GameHerobrine 2022-12-26 07:01:28 +03:00
parent f00318b6ed
commit 62571f26cd
115 changed files with 2291 additions and 2364 deletions

View file

@ -17,11 +17,11 @@ class Vector3{
}
public function copy(){
return new Vector3($this->x, $this->y, $this->z);
return new Vector3($this->x, $this->y, $this->z);
}
public function toArray(){
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
}
public function getFloorX(){
@ -72,7 +72,7 @@ class Vector3{
if(($x instanceof Vector3) === true){
return $this->subtract($x->x, $x->y, $x->z);
}else{
return new Vector3($this->x - $x, $this->y - $y, $this->z - $z);
return new Vector3($this->x - $x, $this->y - $y, $this->z - $z);
}
}
@ -178,9 +178,9 @@ class Vector3{
$this->x * $v->y - $this->y * $v->x
);
}
public static function fromArray($arr){
return new Vector3($arr[0], $arr[1], $arr[2]);
return new Vector3($arr[0], $arr[1], $arr[2]);
}
public function __toString(){