* Sets the vector components to the position elements of the * given transformation matrix. * * @param {Matrix4} m - The 4x4 matrix. * @return {Vector3} A reference to this vector.
( m )
| 1054 | * @return {Vector3} A reference to this vector. |
| 1055 | */ |
| 1056 | setFromMatrixPosition( m ) { |
| 1057 | |
| 1058 | const e = m.elements; |
| 1059 | |
| 1060 | this.x = e[ 12 ]; |
| 1061 | this.y = e[ 13 ]; |
| 1062 | this.z = e[ 14 ]; |
| 1063 | |
| 1064 | return this; |
| 1065 | |
| 1066 | } |
| 1067 | |
| 1068 | /** |
| 1069 | * Sets the vector components to the scale elements of the |
no outgoing calls
no test coverage detected