|
@@ -12,17 +12,15 @@ import { Vector } from './Vector2';
|
|
|
type Vector3Tuple = [number, number, number];
|
|
|
|
|
|
/**
|
|
|
- * 3D vector.
|
|
|
+ * 3D vector. ( class Vector3 implements Vector<Vector3> )
|
|
|
+ *
|
|
|
+ * see {@link https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js}
|
|
|
*
|
|
|
* @example
|
|
|
* const a = new THREE.Vector3( 1, 0, 0 );
|
|
|
* const b = new THREE.Vector3( 0, 1, 0 );
|
|
|
* const c = new THREE.Vector3();
|
|
|
* c.crossVectors( a, b );
|
|
|
- *
|
|
|
- * @see {@link https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js}
|
|
|
- *
|
|
|
- * ( class Vector3 implements Vector<Vector3> )
|
|
|
*/
|
|
|
export class Vector3 implements Vector {
|
|
|
|
|
@@ -193,20 +191,20 @@ export class Vector3 implements Vector {
|
|
|
/**
|
|
|
* Computes the Manhattan length of this vector.
|
|
|
*
|
|
|
- * @return {number}
|
|
|
+ * see {@link http://en.wikipedia.org/wiki/Taxicab_geometry|Wikipedia: Taxicab Geometry}
|
|
|
*
|
|
|
- * @see {@link http://en.wikipedia.org/wiki/Taxicab_geometry|Wikipedia: Taxicab Geometry}
|
|
|
+ * @return {number}
|
|
|
*/
|
|
|
manhattanLength(): number;
|
|
|
|
|
|
/**
|
|
|
* Computes the Manhattan length (distance) from this vector to the given vector v
|
|
|
*
|
|
|
+ * see {@link http://en.wikipedia.org/wiki/Taxicab_geometry|Wikipedia: Taxicab Geometry}
|
|
|
+ *
|
|
|
* @param {Vector3} v
|
|
|
*
|
|
|
* @return {number}
|
|
|
- *
|
|
|
- * @see {@link http://en.wikipedia.org/wiki/Taxicab_geometry|Wikipedia: Taxicab Geometry}
|
|
|
*/
|
|
|
manhattanDistanceTo( v: Vector3 ): number;
|
|
|
|