mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
parent
ef04802863
commit
a8398b3504
@ -139,7 +139,7 @@ class Point3D extends Point {
|
||||
// Overwrite
|
||||
dist() {
|
||||
let d = super.dist();
|
||||
return Math.sqrt(d() * d() + this.z * this.z);
|
||||
return Math.sqrt(d * d + this.z * this.z);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user