extractPositionFromMatrix method

Vector3 extractPositionFromMatrix(
  1. Matrix4 m
)

Extracts the position portion of the given 4x4 matrix and stores it in this 3D vector.

Implementation

Vector3 extractPositionFromMatrix(Matrix4 m ) {
	final e = m.elements;

	x = e[ 12 ];
	y = e[ 13 ];
	z = e[ 14 ];

	return this;
}