Home
last modified time | relevance | path

Searched refs:Matrix4 (Results 1 – 25 of 501) sorted by relevance

12345678910>>...21

/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DMatrixJNITest.java20 import com.badlogic.gdx.math.Matrix4;
29 Matrix4 mat1 = new Matrix4(); in create()
30 Matrix4 mat2 = new Matrix4(); in create()
31 Matrix4 mat3 = new Matrix4(); in create()
40 Matrix4.mulVec(mat1.val, fvec); in create()
41 Matrix4.mulVec(mat1.val, fvecs, 0, 3, 5); in create()
46 Matrix4.prj(mat1.val, fvec); in create()
47 Matrix4.prj(mat1.val, fvecs, 0, 3, 5); in create()
52 Matrix4.rot(mat1.val, fvec); in create()
53 Matrix4.rot(mat1.val, fvecs, 0, 3, 5); in create()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DVector3.java41 private final static Matrix4 tmpMat = new Matrix4();
353 public Vector3 mul (final Matrix4 matrix) { in mul()
355 …return this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[M… in mul()
356 …* l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13], x * l… in mul()
357 * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]); in mul()
363 public Vector3 traMul (final Matrix4 matrix) { in traMul()
365 …return this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M10] + z * l_mat[Matrix4.M20] + l_mat[M… in traMul()
366 …* l_mat[Matrix4.M01] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M21] + l_mat[Matrix4.M31], x * l… in traMul()
367 * l_mat[Matrix4.M12] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M32]); in traMul()
399 public Vector3 prj (final Matrix4 matrix) { in prj()
[all …]
DMatrix4.java29 public class Matrix4 implements Serializable { class
77 public Matrix4 () { in Matrix4() method in Matrix4
87 public Matrix4 (Matrix4 matrix) { in Matrix4() method in Matrix4
94 public Matrix4 (float[] values) { in Matrix4() method in Matrix4
100 public Matrix4 (Quaternion quaternion) { in Matrix4() method in Matrix4
108 public Matrix4 (Vector3 position, Quaternion rotation, Vector3 scale) { in Matrix4() method in Matrix4
116 public Matrix4 set (Matrix4 matrix) { in set()
126 public Matrix4 set (float[] values) { in set()
135 public Matrix4 set (Quaternion quaternion) { in set()
146 public Matrix4 set (float quaternionX, float quaternionY, float quaternionZ, float quaternionW) { in set()
[all …]
/external/libgdx/extensions/gdx-bullet/jni/swig-src/extras/com/badlogic/gdx/physics/bullet/extras/
DExtrasJNI.java18 import com.badlogic.gdx.math.Matrix4;
66 …igidBody(long jarg1, btWorldImporter jarg1_, boolean jarg2, float jarg3, Matrix4 jarg4, long jarg5… in btWorldImporter_createRigidBody()
67 …tWorldImporter_createCollisionObject(long jarg1, btWorldImporter jarg1_, Matrix4 jarg2, long jarg3… in btWorldImporter_createCollisionObject()
94 … long jarg2, btRigidBody jarg2_, long jarg3, btRigidBody jarg3_, Matrix4 jarg4, Matrix4 jarg5, boo… in btWorldImporter_createHingeConstraint__SWIG_0()
95 …g1_, long jarg2, btRigidBody jarg2_, long jarg3, btRigidBody jarg3_, Matrix4 jarg4, Matrix4 jarg5); in btWorldImporter_createHingeConstraint__SWIG_1()
96 …IG_2(long jarg1, btWorldImporter jarg1_, long jarg2, btRigidBody jarg2_, Matrix4 jarg3, boolean ja… in btWorldImporter_createHingeConstraint__SWIG_2()
97 …straint__SWIG_3(long jarg1, btWorldImporter jarg1_, long jarg2, btRigidBody jarg2_, Matrix4 jarg3); in btWorldImporter_createHingeConstraint__SWIG_3()
98 …g1_, long jarg2, btRigidBody jarg2_, long jarg3, btRigidBody jarg3_, Matrix4 jarg4, Matrix4 jarg5); in btWorldImporter_createConeTwistConstraint__SWIG_0()
99 …straint__SWIG_1(long jarg1, btWorldImporter jarg1_, long jarg2, btRigidBody jarg2_, Matrix4 jarg3); in btWorldImporter_createConeTwistConstraint__SWIG_1()
100 … long jarg2, btRigidBody jarg2_, long jarg3, btRigidBody jarg3_, Matrix4 jarg4, Matrix4 jarg5, boo… in btWorldImporter_createGeneric6DofConstraint__SWIG_0()
[all …]
DExtras.java18 import com.badlogic.gdx.math.Matrix4;
56 public final static Matrix4 staticMatrix4 = new Matrix4();
58 …lic final static com.badlogic.gdx.utils.Pool<Matrix4> poolMatrix4 = new com.badlogic.gdx.utils.Poo…
60 protected Matrix4 newObject() {
61 return new Matrix4();
DbtWorldImporter.java18 import com.badlogic.gdx.math.Matrix4;
145 …public btRigidBody createRigidBody(boolean isDynamic, float mass, Matrix4 startTransform, btCollis… in createRigidBody()
149 …public btCollisionObject createCollisionObject(Matrix4 startTransform, btCollisionShape shape, Str… in createCollisionObject()
286 …straint createHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame… in createHingeConstraint()
291 …straint createHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame… in createHingeConstraint()
296 …public btHingeConstraint createHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame, boolean useRefer… in createHingeConstraint()
301 public btHingeConstraint createHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame) { in createHingeConstraint()
306 …int createConeTwistConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame… in createConeTwistConstraint()
311 public btConeTwistConstraint createConeTwistConstraint(btRigidBody rbA, Matrix4 rbAFrame) { in createConeTwistConstraint()
316 …t createGeneric6DofConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB… in createGeneric6DofConstraint()
[all …]
/external/libgdx/extensions/gdx-bullet/jni/swig-src/dynamics/com/badlogic/gdx/physics/bullet/dynamics/
DbtHingeConstraint.java17 import com.badlogic.gdx.math.Matrix4;
78 …public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame, boo… in btHingeConstraint()
82 public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame) { in btHingeConstraint()
86 public btHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame, boolean useReferenceFrameA) { in btHingeConstraint()
90 public btHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame) { in btHingeConstraint()
98 …public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 t… in getInfo2NonVirtual()
102 …public void getInfo2Internal(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 tra… in getInfo2Internal()
106 …ternalUsingFrameOffset(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, V… in getInfo2InternalUsingFrameOffset()
122 public Matrix4 getFrameOffsetA() { in getFrameOffsetA()
126 public Matrix4 getFrameOffsetB() { in getFrameOffsetB()
[all …]
DbtGeneric6DofConstraint.java17 import com.badlogic.gdx.math.Matrix4;
70 …public btGeneric6DofConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameIn… in btGeneric6DofConstraint()
74 …public btGeneric6DofConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameB… in btGeneric6DofConstraint()
78 public void calculateTransforms(Matrix4 transA, Matrix4 transB) { in calculateTransforms()
86 public Matrix4 getCalculatedTransformA() { in getCalculatedTransformA()
90 public Matrix4 getCalculatedTransformB() { in getCalculatedTransformB()
94 public Matrix4 getFrameOffsetA() { in getFrameOffsetA()
98 public Matrix4 getFrameOffsetB() { in getFrameOffsetB()
106 …public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 t… in getInfo2NonVirtual()
126 public void setFrames(Matrix4 frameA, Matrix4 frameB) { in setFrames()
[all …]
DbtConeTwistConstraint.java17 import com.badlogic.gdx.math.Matrix4;
62 …public btConeTwistConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame)… in btConeTwistConstraint()
66 public btConeTwistConstraint(btRigidBody rbA, Matrix4 rbAFrame) { in btConeTwistConstraint()
74 …public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 t… in getInfo2NonVirtual()
114 public Matrix4 getAFrame() { in getAFrame()
118 public Matrix4 getBFrame() { in getBFrame()
138 …public void calcAngleInfo2(Matrix4 transA, Matrix4 transB, Matrix3 invInertiaWorldA, Matrix3 invIn… in calcAngleInfo2()
206 public void setFrames(Matrix4 frameA, Matrix4 frameB) { in setFrames()
210 public Matrix4 getFrameOffsetA() { in getFrameOffsetA()
214 public Matrix4 getFrameOffsetB() { in getFrameOffsetB()
DbtGeneric6DofSpring2Constraint.java17 import com.badlogic.gdx.math.Matrix4;
62 …public btGeneric6DofSpring2Constraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 in btGeneric6DofSpring2Constraint()
66 …public btGeneric6DofSpring2Constraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 in btGeneric6DofSpring2Constraint()
70 public btGeneric6DofSpring2Constraint(btRigidBody rbB, Matrix4 frameInB, int rotOrder) { in btGeneric6DofSpring2Constraint()
74 public btGeneric6DofSpring2Constraint(btRigidBody rbB, Matrix4 frameInB) { in btGeneric6DofSpring2Constraint()
88 public void calculateTransforms(Matrix4 transA, Matrix4 transB) { in calculateTransforms()
96 public Matrix4 getCalculatedTransformA() { in getCalculatedTransformA()
100 public Matrix4 getCalculatedTransformB() { in getCalculatedTransformB()
104 public Matrix4 getFrameOffsetA() { in getFrameOffsetA()
108 public Matrix4 getFrameOffsetB() { in getFrameOffsetB()
[all …]
DbtSliderConstraint.java17 import com.badlogic.gdx.math.Matrix4;
62 …public btSliderConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, bo… in btSliderConstraint()
66 public btSliderConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA) { in btSliderConstraint()
74 …public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 t… in getInfo2NonVirtual()
86 public Matrix4 getCalculatedTransformA() { in getCalculatedTransformA()
90 public Matrix4 getCalculatedTransformB() { in getCalculatedTransformB()
94 public Matrix4 getFrameOffsetA() { in getFrameOffsetA()
98 public Matrix4 getFrameOffsetB() { in getFrameOffsetB()
354 public void calculateTransforms(Matrix4 transA, Matrix4 transB) { in calculateTransforms()
382 public void setFrames(Matrix4 frameA, Matrix4 frameB) { in setFrames()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/shapebuilders/
DArrowShapeBuilder.java20 import com.badlogic.gdx.math.Matrix4;
52 Matrix4 userTransform = builder.getVertexTransform(obtainM4()); in build()
53 Matrix4 transform = obtainM4(); in build()
55 val[Matrix4.M00] = left.x; in build()
56 val[Matrix4.M01] = up.x; in build()
57 val[Matrix4.M02] = forward.x; in build()
58 val[Matrix4.M10] = left.y; in build()
59 val[Matrix4.M11] = up.y; in build()
60 val[Matrix4.M12] = forward.y; in build()
61 val[Matrix4.M20] = left.z; in build()
[all …]
DBaseShapeBuilder.java22 import com.badlogic.gdx.math.Matrix4;
62 protected static final Matrix4 matTmp1 = new Matrix4();
71 private final static FlushablePool<Matrix4> matrices4Pool = new FlushablePool<Matrix4>() {
73 protected Matrix4 newObject () {
74 return new Matrix4();
84 protected static Matrix4 obtainM4 () { in obtainM4()
85 final Matrix4 result = matrices4Pool.obtain(); in obtainM4()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/gles2/
DSimpleVertexShader.java24 import com.badlogic.gdx.math.Matrix4;
31 Matrix4 projection = new Matrix4();
32 Matrix4 view = new Matrix4();
33 Matrix4 model = new Matrix4();
34 Matrix4 combined = new Matrix4();
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
DbtCollisionWorld.java16 import com.badlogic.gdx.math.Matrix4;
109 public void debugDrawObject(Matrix4 worldTransform, btCollisionShape shape, Vector3 color) { in debugDrawObject()
121 …public void convexSweepTest(btConvexShape castShape, Matrix4 from, Matrix4 to, ConvexResultCallbac… in convexSweepTest()
125 …public void convexSweepTest(btConvexShape castShape, Matrix4 from, Matrix4 to, ConvexResultCallbac… in convexSweepTest()
137 …oid rayTestSingle(Matrix4 rayFromTrans, Matrix4 rayToTrans, btCollisionObject collisionObject, btC… in rayTestSingle()
141 …public static void rayTestSingleInternal(Matrix4 rayFromTrans, Matrix4 rayToTrans, btCollisionObje… in rayTestSingleInternal()
145 …xShape castShape, Matrix4 rayFromTrans, Matrix4 rayToTrans, btCollisionObject collisionObject, btC… in objectQuerySingle()
149 …tic void objectQuerySingleInternal(btConvexShape castShape, Matrix4 convexFromTrans, Matrix4 conve… in objectQuerySingleInternal()
DbtGjkEpaSolver2.java16 import com.badlogic.gdx.math.Matrix4;
155 …public static boolean Distance(btConvexShape shape0, Matrix4 wtrs0, btConvexShape shape1, Matrix4 in Distance()
159 …blic static boolean Penetration(btConvexShape shape0, Matrix4 wtrs0, btConvexShape shape1, Matrix4 in Penetration()
163 …blic static boolean Penetration(btConvexShape shape0, Matrix4 wtrs0, btConvexShape shape1, Matrix4 in Penetration()
167 …public static float SignedDistance(Vector3 position, float margin, btConvexShape shape, Matrix4 wt… in SignedDistance()
171 …c static boolean SignedDistance(btConvexShape shape0, Matrix4 wtrs0, btConvexShape shape1, Matrix4 in SignedDistance()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DBulletEntity.java21 import com.badlogic.gdx.math.Matrix4;
31 private final static Matrix4 tmpM = new Matrix4();
42 …public BulletEntity (final Model model, final btRigidBodyConstructionInfo bodyInfo, final Matrix4 in BulletEntity()
50 public BulletEntity (final Model model, final btCollisionObject body, final Matrix4 transform) { in BulletEntity()
83 private final Matrix4 transform;
85 public MotionState (final Matrix4 transform) { in MotionState()
92 public void getWorldTransform (final Matrix4 worldTrans) { in getWorldTransform()
98 public void setWorldTransform (final Matrix4 worldTrans) { in setWorldTransform()
DOcclusionBuffer.java92 public Quaternion mul (final Matrix4 matrix) { in mul()
94 …return this.set(x * val[Matrix4.M00] + y * val[Matrix4.M01] + z * val[Matrix4.M02] + w * val[Matri… in mul()
95 x * val[Matrix4.M10] + y * val[Matrix4.M11] + z * val[Matrix4.M12] + w * val[Matrix4.M13], in mul()
96 x * val[Matrix4.M20] + y * val[Matrix4.M21] + z * val[Matrix4.M22] + w * val[Matrix4.M23], in mul()
97 x * val[Matrix4.M30] + y * val[Matrix4.M31] + z * val[Matrix4.M32] + w * val[Matrix4.M33]); in mul()
170 private Matrix4 projectionMatrix = new Matrix4();
259 public void drawBB (Matrix4 worldTransform, Vector3 halfExt) { in drawBB()
429 public void setProjectionMatrix (Matrix4 matrix) { in setProjectionMatrix()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/math/
DMatrix4.java29 public class Matrix4 implements Serializable { class
79 public Matrix4 () { in Matrix4() method in Matrix4
89 public Matrix4 (Matrix4 matrix) { in Matrix4() method in Matrix4
96 public Matrix4 (float[] values) { in Matrix4() method in Matrix4
102 public Matrix4 (Quaternion quaternion) { in Matrix4() method in Matrix4
110 public Matrix4 (Vector3 position, Quaternion rotation, Vector3 scale) { in Matrix4() method in Matrix4
118 public Matrix4 set (Matrix4 matrix) { in set()
128 public Matrix4 set (float[] values) { in set()
152 public Matrix4 set (Quaternion quaternion) { in set()
163 public Matrix4 set (float quaternionX, float quaternionY, float quaternionZ, float quaternionW) { in set()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DCpuSpriteBatch.java23 import com.badlogic.gdx.math.Matrix4;
35 private final Matrix4 virtualMatrix = new Matrix4();
85 public Matrix4 getTransformMatrix () { in getTransformMatrix()
94 public void setTransformMatrix (Matrix4 transform) { in setTransformMatrix()
95 Matrix4 realMatrix = super.getTransformMatrix(); in setTransformMatrix()
125 Matrix4 realMatrix = super.getTransformMatrix(); in setTransformMatrix()
627 private static boolean checkEqual (Matrix4 a, Matrix4 b) { in checkEqual()
631 return (a.val[Matrix4.M00] == b.val[Matrix4.M00] && a.val[Matrix4.M10] == b.val[Matrix4.M10] in checkEqual()
632 && a.val[Matrix4.M01] == b.val[Matrix4.M01] && a.val[Matrix4.M11] == b.val[Matrix4.M11] in checkEqual()
633 && a.val[Matrix4.M03] == b.val[Matrix4.M03] && a.val[Matrix4.M13] == b.val[Matrix4.M13]); in checkEqual()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/model/
DNodePart.java23 import com.badlogic.gdx.math.Matrix4;
36 public ArrayMap<Node, Matrix4> invBoneBindTransforms;
39 public Matrix4[] bones;
83 …nvBoneBindTransforms = new ArrayMap<Node, Matrix4>(true, other.invBoneBindTransforms.size, Node.cl… in set()
89 bones = new Matrix4[invBoneBindTransforms.size]; in set()
93 bones[i] = new Matrix4(); in set()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/
DCamera.java24 import com.badlogic.gdx.math.Matrix4;
40 public final Matrix4 projection = new Matrix4();
42 public final Matrix4 view = new Matrix4();
44 public final Matrix4 combined = new Matrix4();
46 public final Matrix4 invProjectionView = new Matrix4();
131 public void rotate (final Matrix4 transform) { in rotate()
163 public void transform (final Matrix4 transform) { in transform()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/
DbtTransformUtil.java15 import com.badlogic.gdx.math.Matrix4;
60 …public static void integrateTransform(Matrix4 curTrans, Vector3 linvel, Vector3 angvel, float time… in integrateTransform()
72 …public static void calculateVelocity(Matrix4 transform0, Matrix4 transform1, float timeStep, Vecto… in calculateVelocity()
76 …public static void calculateDiffAxisAngle(Matrix4 transform0, Matrix4 transform1, Vector3 axis, SW… in calculateDiffAxisAngle()
DbtDefaultMotionState.java15 import com.badlogic.gdx.math.Matrix4;
95 public btDefaultMotionState(Matrix4 startTrans, Matrix4 centerOfMassOffset) { in btDefaultMotionState()
99 public btDefaultMotionState(Matrix4 startTrans) { in btDefaultMotionState()
107 public void getGraphicsWorldTrans(Matrix4 out) { in getGraphicsWorldTrans()
111 public void getCenterOfMassOffset(Matrix4 out) { in getCenterOfMassOffset()
115 public void getStartWorldTrans(Matrix4 out) { in getStartWorldTrans()
DbtTransform.java15 import com.badlogic.gdx.math.Matrix4;
80 public btTransform(Matrix4 other) { in btTransform()
84 public void mult(Matrix4 t1, Matrix4 t2) { in mult()
128 public Matrix4 inverse() { in inverse()
132 public Matrix4 inverseTimes(Matrix4 t) { in inverseTimes()
136 public static Matrix4 getIdentity() { in getIdentity()

12345678910>>...21