mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-10 16:54:33 +02:00
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user