Skip to content

Commit

Permalink
feature(Coordinates): add applyMatrix4 method.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed May 3, 2021
1 parent 2e27408 commit 061eda0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Core/Geographic/Coordinates.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ class Coordinates {
return target.copy(this);
}

/**
* Multiplies this `coordinates` (with an implicit 1 in the 4th dimension) and `mat`.
*
* @param {THREE.Matrix4} mat The matrix.
* @return {Coordinates} return this object.
*/
applyMatrix4(mat) {
return THREE.Vector3.prototype.applyMatrix4.call(this, mat);
}

/**
* Returns coordinates in the wanted [CRS]{@link http://inspire.ec.europa.eu/theme/rs}.
*
Expand Down

0 comments on commit 061eda0

Please sign in to comment.