本文整理了Java中com.ardor3d.math.Transform.isIdentity()
方法的一些代码示例,展示了Transform.isIdentity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transform.isIdentity()
方法的具体详情如下:
包路径:com.ardor3d.math.Transform
类名称:Transform
方法名:isIdentity
暂无
代码示例来源:origin: Renanse/Ardor3D
if (!bindShapeMatrix.isIdentity()) {
bindPose.transformVertices(bindShapeMatrix);
if (bindPose.getNormalBuffer() != null) {
代码示例来源:origin: Renanse/Ardor3D
@Test
public void testMultiply() {
final Transform trans1 = new Transform();
final Transform trans2 = new Transform();
assertEquals(Transform.IDENTITY, trans1.multiply(trans2, null));
trans1.setTranslation(1, 2, 3);
final Transform trans3 = trans1.multiply(trans2, null);
assertEquals(trans1, trans3);
trans2.setTranslation(-1, -2, -3);
trans1.multiply(trans2, trans3);
assertEquals(Transform.IDENTITY, trans3);
assertTrue(trans3.isRotationMatrix());
assertTrue(trans3.isIdentity());
assertTrue(trans3.isUniformScale());
trans2.setScale(1, 2, 1);
trans1.multiply(trans2, trans3);
assertEquals(new Transform().setScale(1, 2, 1), trans3);
assertTrue(trans3.isRotationMatrix());
assertFalse(trans3.isIdentity());
assertFalse(trans3.isUniformScale());
trans1.setScale(1, 2, 1);
trans1.multiply(trans2, trans3);
assertEquals(new Transform().setRotation(new Matrix3(1, 0, 0, 0, 4, 0, 0, 0, 1)).setTranslation(0, -2, 0),
trans3);
assertFalse(trans3.isRotationMatrix());
assertFalse(trans3.isIdentity());
assertFalse(trans3.isUniformScale());
}
代码示例来源:origin: Renanse/Ardor3D
assertTrue(true == immutable.isIdentity());
assertTrue(true == immutable.isRotationMatrix());
assertTrue(true == immutable.isUniformScale());
内容来源于网络,如有侵权,请联系作者删除!