Skip to content

Commit 061eda0

Browse files
committed
feature(Coordinates): add applyMatrix4 method.
1 parent 2e27408 commit 061eda0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Core/Geographic/Coordinates.js

+10
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,16 @@ class Coordinates {
197197
return target.copy(this);
198198
}
199199

200+
/**
201+
* Multiplies this `coordinates` (with an implicit 1 in the 4th dimension) and `mat`.
202+
*
203+
* @param {THREE.Matrix4} mat The matrix.
204+
* @return {Coordinates} return this object.
205+
*/
206+
applyMatrix4(mat) {
207+
return THREE.Vector3.prototype.applyMatrix4.call(this, mat);
208+
}
209+
200210
/**
201211
* Returns coordinates in the wanted [CRS]{@link http://inspire.ec.europa.eu/theme/rs}.
202212
*

0 commit comments

Comments
 (0)