setPosition method

Matrix4 setPosition(
  1. Vector3 v
)

Sets the translation part of the 4x4 matrix to the given position vector.

Implementation

Matrix4 setPosition(Vector3 v ) {
	final e = elements;

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

	return this;
}