本文整理了Java中com.ardor3d.math.Transform.updateFlags()
方法的一些代码示例,展示了Transform.updateFlags()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transform.updateFlags()
方法的具体详情如下:
包路径:com.ardor3d.math.Transform
类名称:Transform
方法名:updateFlags
[英]Updates _rotationMatrix, _uniformScale and _identity based on the current contents of this Transform.
[中]基于此转换的当前内容更新_rotationMatrix、_uniformScale和_identity。
代码示例来源:origin: Renanse/Ardor3D
/**
* Sets the matrix portion of this transform to the rotational value of the given Quaternion. Calling this allows
* scale to be set and used.
*
* @param rotation
* @return this transform for chaining.
* @throws NullPointerException
* if rotation is null.
*/
public Transform setRotation(final ReadOnlyQuaternion rotation) {
_matrix.set(rotation);
updateFlags(true);
return this;
}
代码示例来源:origin: com.ardor3d/ardor3d-math
/**
* Sets the matrix portion of this transform to the rotational value of the given Quaternion. Calling this allows
* scale to be set and used.
*
* @param rotation
* @return this transform for chaining.
* @throws NullPointerException
* if rotation is null.
*/
public Transform setRotation(final ReadOnlyQuaternion rotation) {
_matrix.set(rotation);
updateFlags(true);
return this;
}
代码示例来源:origin: com.ardor3d/ardor3d-math
/**
* Sets the matrix portion of this transform to the given value.
*
* NB: Calling this with a matrix that is not purely rotational (orthonormal) will result in a Transform whose scale
* comes from its matrix. Further attempts to set scale directly will throw an error.
*
* @param rotation
* our new matrix.
* @return this transform for chaining.
* @throws NullPointerException
* if rotation is null.
* @see Matrix3#isOrthonormal()
*/
public Transform setRotation(final ReadOnlyMatrix3 rotation) {
_matrix.set(rotation);
updateFlags(false);
return this;
}
代码示例来源:origin: Renanse/Ardor3D
/**
* Sets the matrix portion of this transform to the given value.
*
* NB: Calling this with a matrix that is not purely rotational (orthonormal) will result in a Transform whose scale
* comes from its matrix. Further attempts to set scale directly will throw an error.
*
* @param rotation
* our new matrix.
* @return this transform for chaining.
* @throws NullPointerException
* if rotation is null.
* @see Matrix3#isOrthonormal()
*/
public Transform setRotation(final ReadOnlyMatrix3 rotation) {
_matrix.set(rotation);
updateFlags(false);
return this;
}
代码示例来源:origin: Renanse/Ardor3D
/**
* Reads in a 4x4 matrix as a 3x3 matrix and translation.
*
* @param matrix
* @return this matrix for chaining.
* @throws NullPointerException
* if matrix is null.
*/
public Transform fromHomogeneousMatrix(final ReadOnlyMatrix4 matrix) {
_matrix.set(matrix.getM00(), matrix.getM01(), matrix.getM02(), matrix.getM10(), matrix.getM11(),
matrix.getM12(), matrix.getM20(), matrix.getM21(), matrix.getM22());
_translation.set(matrix.getM03(), matrix.getM13(), matrix.getM23());
updateFlags(false);
return this;
}
代码示例来源:origin: com.ardor3d/ardor3d-math
/**
* Reads in a 4x4 matrix as a 3x3 matrix and translation.
*
* @param matrix
* @return this matrix for chaining.
* @throws NullPointerException
* if matrix is null.
*/
public Transform fromHomogeneousMatrix(final ReadOnlyMatrix4 matrix) {
_matrix.set(matrix.getM00(), matrix.getM01(), matrix.getM02(), matrix.getM10(), matrix.getM11(),
matrix.getM12(), matrix.getM20(), matrix.getM21(), matrix.getM22());
_translation.set(matrix.getM03(), matrix.getM13(), matrix.getM23());
updateFlags(false);
return this;
}
代码示例来源:origin: com.ardor3d/ardor3d-math
result.updateFlags(_rotationMatrix);
代码示例来源:origin: Renanse/Ardor3D
result.updateFlags(_rotationMatrix);
代码示例来源:origin: Renanse/Ardor3D
result.updateFlags(true);
result.updateFlags(false);
代码示例来源:origin: com.ardor3d/ardor3d-math
result.updateFlags(true);
result.updateFlags(false);
代码示例来源:origin: Renanse/Ardor3D
trans2.updateFlags(false);
内容来源于网络,如有侵权,请联系作者删除!