Uses of Class
com.badlogic.gdx.math.Matrix4
-
-
Uses of Matrix4 in com.badlogic.gdx.graphics
Fields in com.badlogic.gdx.graphics declared as Matrix4 Modifier and Type Field Description Matrix4Camera. combinedthe combined projection and view matrixMatrix4Camera. invProjectionViewthe inverse combined projection and view matrixMatrix4Camera. projectionthe projection matrixMatrix4Camera. viewthe view matrixMethods in com.badlogic.gdx.graphics with parameters of type Matrix4 Modifier and Type Method Description BoundingBoxMesh. calculateBoundingBox(BoundingBox out, int offset, int count, Matrix4 transform)Calculate theBoundingBoxof the specified part.floatMesh. calculateRadius(float centerX, float centerY, float centerZ, int offset, int count, Matrix4 transform)Calculates the radius of the bounding sphere around the specified center for the specified part.floatMesh. calculateRadius(Vector3 center, int offset, int count, Matrix4 transform)Calculates the squared radius of the bounding sphere around the specified center for the specified part.floatMesh. calculateRadiusSquared(float centerX, float centerY, float centerZ, int offset, int count, Matrix4 transform)Calculates the squared radius of the bounding sphere around the specified center for the specified part.BoundingBoxMesh. extendBoundingBox(BoundingBox out, int offset, int count, Matrix4 transform)Extends the specifiedBoundingBoxwith the specified part.voidCamera. rotate(Matrix4 transform)Rotates the direction and up vector of this camera by the given rotation matrix.voidCamera. transform(Matrix4 transform)Transform the position, direction and up vector by the given matrixvoidMesh. transform(Matrix4 matrix)Method to transform the positions in the mesh.static voidMesh. transform(Matrix4 matrix, float[] vertices, int vertexSize, int offset, int dimensions, int start, int count)Method to transform the positions in the float array.voidMesh. transform(Matrix4 matrix, int start, int count) -
Uses of Matrix4 in com.badlogic.gdx.graphics.g2d
Methods in com.badlogic.gdx.graphics.g2d that return Matrix4 Modifier and Type Method Description Matrix4Batch. getProjectionMatrix()Returns the current projection matrix.Matrix4PolygonSpriteBatch. getProjectionMatrix()Matrix4SpriteBatch. getProjectionMatrix()Matrix4SpriteCache. getProjectionMatrix()Matrix4Batch. getTransformMatrix()Returns the current transform matrix.Matrix4CpuSpriteBatch. getTransformMatrix()Matrix4PolygonSpriteBatch. getTransformMatrix()Matrix4SpriteBatch. getTransformMatrix()Matrix4SpriteCache. getTransformMatrix()Methods in com.badlogic.gdx.graphics.g2d with parameters of type Matrix4 Modifier and Type Method Description voidBatch. setProjectionMatrix(Matrix4 projection)Sets the projection matrix to be used by this Batch.voidPolygonSpriteBatch. setProjectionMatrix(Matrix4 projection)voidSpriteBatch. setProjectionMatrix(Matrix4 projection)voidSpriteCache. setProjectionMatrix(Matrix4 projection)voidBatch. setTransformMatrix(Matrix4 transform)Sets the transform matrix to be used by this Batch.voidCpuSpriteBatch. setTransformMatrix(Matrix4 transform)Sets the transform matrix to be used by this Batch.voidPolygonSpriteBatch. setTransformMatrix(Matrix4 transform)voidSpriteBatch. setTransformMatrix(Matrix4 transform)voidSpriteCache. setTransformMatrix(Matrix4 transform) -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d
Fields in com.badlogic.gdx.graphics.g3d declared as Matrix4 Modifier and Type Field Description Matrix4[]Renderable. bonesThe bone transformations used for skinning, or null if not applicable.Matrix4ModelInstance. transformthe world transformMatrix4Renderable. worldTransformUsed to specify the transformations (like translation, scale and rotation) to apply to the shape.Constructors in com.badlogic.gdx.graphics.g3d with parameters of type Matrix4 Constructor Description ModelInstance(ModelInstance copyFrom, Matrix4 transform)Constructs a new ModelInstance which is an copy of the specified ModelInstance.ModelInstance(ModelInstance copyFrom, Matrix4 transform, boolean shareKeyframes)Constructs a new ModelInstance which is an copy of the specified ModelInstance.ModelInstance(Model model, Matrix4 transform)Constructs a new ModelInstance with the specified transform.ModelInstance(Model model, Matrix4 transform, Array<java.lang.String> rootNodeIds)Constructs a new ModelInstance with only the specified nodes and materials of the given model.ModelInstance(Model model, Matrix4 transform, Array<java.lang.String> rootNodeIds, boolean shareKeyframes)Constructs a new ModelInstance with only the specified nodes and materials of the given model.ModelInstance(Model model, Matrix4 transform, java.lang.String... rootNodeIds)Constructs a new ModelInstance with only the specified nodes and materials of the given model.ModelInstance(Model model, Matrix4 transform, java.lang.String nodeId, boolean mergeTransform)ModelInstance(Model model, Matrix4 transform, java.lang.String nodeId, boolean parentTransform, boolean mergeTransform)Recursively searches the mode for the specified node.ModelInstance(Model model, Matrix4 transform, java.lang.String nodeId, boolean recursive, boolean parentTransform, boolean mergeTransform)ModelInstance(Model model, Matrix4 transform, java.lang.String nodeId, boolean recursive, boolean parentTransform, boolean mergeTransform, boolean shareKeyframes) -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.environment
Methods in com.badlogic.gdx.graphics.g3d.environment that return Matrix4 Modifier and Type Method Description Matrix4DirectionalShadowLight. getProjViewTrans()Matrix4ShadowMap. getProjViewTrans() -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.model
Fields in com.badlogic.gdx.graphics.g3d.model declared as Matrix4 Modifier and Type Field Description Matrix4[]NodePart. bonesThe current transformation (relative to the bind pose) of each bone, may be null.Matrix4Node. globalTransformthe global transform, product of local transform and transform of the parent node, calculated viaNode.calculateWorldTransform()Matrix4Node. localTransformthe local transform, based on translation/rotation/scale (Node.calculateLocalTransform()) or any applied animationFields in com.badlogic.gdx.graphics.g3d.model with type parameters of type Matrix4 Modifier and Type Field Description ArrayMap<Node,Matrix4>NodePart. invBoneBindTransformsMapping to each bone (node) and the inverse transform of the bind pose.Methods in com.badlogic.gdx.graphics.g3d.model that return Matrix4 Modifier and Type Method Description Matrix4Node. calculateLocalTransform()Calculates the local transform based on the translation, scale and rotationMatrix4Node. calculateWorldTransform()Calculates the world transform; the product of local transform and the parent's world transform. -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.model.data
Fields in com.badlogic.gdx.graphics.g3d.model.data with type parameters of type Matrix4 Modifier and Type Field Description ArrayMap<java.lang.String,Matrix4>ModelNodePart. bones -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.particles
Fields in com.badlogic.gdx.graphics.g3d.particles declared as Matrix4 Modifier and Type Field Description protected static Matrix4ParticleControllerComponent. TMP_M4Matrix4ParticleController. transformCurrent transform of the controller DO NOT CHANGE MANUALLYMethods in com.badlogic.gdx.graphics.g3d.particles with parameters of type Matrix4 Modifier and Type Method Description voidParticleController. getTransform(Matrix4 transform)Set the given matrix to the current transformation matrix.voidParticleController. mul(Matrix4 transform)Postmultiplies the current transformation with the given matrix.voidParticleController. setTransform(Matrix4 transform)Sets the current transformation to the given one.voidParticleEffect. setTransform(Matrix4 transform)Sets the given transform matrix on each controller. -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.shaders
Methods in com.badlogic.gdx.graphics.g3d.shaders with parameters of type Matrix4 Modifier and Type Method Description booleanBaseShader. set(int uniform, Matrix4 value) -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.utils
Methods in com.badlogic.gdx.graphics.g3d.utils that return Matrix4 Modifier and Type Method Description Matrix4MeshBuilder. getVertexTransform(Matrix4 out)Matrix4MeshPartBuilder. getVertexTransform(Matrix4 out)Get the current vertex transformation matrix.Matrix4ShapeCache. getWorldTransform()Allows to customize the world transform matrix.Matrix4BaseAnimationController.Transform. toMatrix4(Matrix4 out)Methods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Matrix4 Modifier and Type Method Description voidMeshBuilder. box(Matrix4 transform)Deprecated.voidMeshPartBuilder. box(Matrix4 transform)Deprecated.use BoxShapeBuilder.build instead.Matrix4MeshBuilder. getVertexTransform(Matrix4 out)Matrix4MeshPartBuilder. getVertexTransform(Matrix4 out)Get the current vertex transformation matrix.voidMeshBuilder. setVertexTransform(Matrix4 transform)voidMeshPartBuilder. setVertexTransform(Matrix4 transform)Set the current vertex transformation matrix and enables vertex transformation.voidMeshBuilder. sphere(Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV)Deprecated.voidMeshBuilder. sphere(Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)Deprecated.voidMeshPartBuilder. sphere(Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV)Deprecated.Use SphereShapeBuilder.build instead.voidMeshPartBuilder. sphere(Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)Deprecated.Use SphereShapeBuilder.build instead.Matrix4BaseAnimationController.Transform. toMatrix4(Matrix4 out) -
Uses of Matrix4 in com.badlogic.gdx.graphics.g3d.utils.shapebuilders
Fields in com.badlogic.gdx.graphics.g3d.utils.shapebuilders declared as Matrix4 Modifier and Type Field Description protected static Matrix4BaseShapeBuilder. matTmp1Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders that return Matrix4 Modifier and Type Method Description protected static Matrix4BaseShapeBuilder. obtainM4()Obtain a temporaryMatrix4object, must be free'd usingBaseShapeBuilder.freeAll().Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders with parameters of type Matrix4 Modifier and Type Method Description static voidBoxShapeBuilder. build(MeshPartBuilder builder, Matrix4 transform)Add a box given the matrix.static voidSphereShapeBuilder. build(MeshPartBuilder builder, Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV)Deprecated.useMeshPartBuilder.setVertexTransform(Matrix4)instead of using the method signature taking a matrix.static voidSphereShapeBuilder. build(MeshPartBuilder builder, Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)Deprecated.useMeshPartBuilder.setVertexTransform(Matrix4)instead of using the method signature taking a matrix. -
Uses of Matrix4 in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils that return Matrix4 Modifier and Type Method Description Matrix4ShapeRenderer. getProjectionMatrix()If the matrix is modified,ShapeRenderer.updateMatrices()must be called.Matrix4ShapeRenderer. getTransformMatrix()If the matrix is modified,ShapeRenderer.updateMatrices()must be called.Methods in com.badlogic.gdx.graphics.glutils with parameters of type Matrix4 Modifier and Type Method Description voidImmediateModeRenderer. begin(Matrix4 projModelView, int primitiveType)voidImmediateModeRenderer20. begin(Matrix4 projModelView, int primitiveType)voidShapeRenderer. setProjectionMatrix(Matrix4 matrix)Sets the projection matrix to be used for rendering.voidShapeRenderer. setTransformMatrix(Matrix4 matrix)voidShaderProgram. setUniformMatrix(int location, Matrix4 matrix)voidShaderProgram. setUniformMatrix(int location, Matrix4 matrix, boolean transpose)voidShaderProgram. setUniformMatrix(java.lang.String name, Matrix4 matrix)Sets the uniform matrix with the given name.voidShaderProgram. setUniformMatrix(java.lang.String name, Matrix4 matrix, boolean transpose)Sets the uniform matrix with the given name. -
Uses of Matrix4 in com.badlogic.gdx.maps
Methods in com.badlogic.gdx.maps with parameters of type Matrix4 Modifier and Type Method Description voidMapRenderer. setView(Matrix4 projectionMatrix, float viewboundsX, float viewboundsY, float viewboundsWidth, float viewboundsHeight)Sets the projection matrix for rendering, as well as the bounds of the map which should be rendered. -
Uses of Matrix4 in com.badlogic.gdx.maps.tiled.renderers
Methods in com.badlogic.gdx.maps.tiled.renderers with parameters of type Matrix4 Modifier and Type Method Description voidBatchTiledMapRenderer. setView(Matrix4 projection, float x, float y, float width, float height)voidOrthoCachedTiledMapRenderer. setView(Matrix4 projection, float x, float y, float width, float height) -
Uses of Matrix4 in com.badlogic.gdx.math
Methods in com.badlogic.gdx.math that return Matrix4 Modifier and Type Method Description Matrix4Matrix4. avg(Matrix4[] t)Averages the given transforms and stores the result in this matrix.Matrix4Matrix4. avg(Matrix4[] t, float[] w)Averages the given transforms with the given weights and stores the result in this matrix.Matrix4Matrix4. avg(Matrix4 other, float w)Averages the given transform with this one and stores the result in this matrix.Matrix4Matrix4. cpy()Matrix4Matrix4. idt()Sets the matrix to an identity matrix.Matrix4Matrix4. inv()Inverts the matrix.Matrix4Matrix4. lerp(Matrix4 matrix, float alpha)Linearly interpolates between this matrix and the given matrix mixing by alphaMatrix4Matrix4. mul(Matrix4 matrix)Postmultiplies this matrix with the given matrix, storing the result in this matrix.Matrix4Matrix4. mulLeft(Matrix4 matrix)Premultiplies this matrix with the given matrix, storing the result in this matrix.Matrix4Matrix4. rotate(float axisX, float axisY, float axisZ, float degrees)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotate(Quaternion rotation)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotate(Vector3 axis, float degrees)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotate(Vector3 v1, Vector3 v2)Postmultiplies this matrix by the rotation between two vectors.Matrix4Matrix4. rotateRad(float axisX, float axisY, float axisZ, float radians)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotateRad(Vector3 axis, float radians)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotateTowardDirection(Vector3 direction, Vector3 up)Post-multiplies this matrix by a rotation toward a direction.Matrix4Matrix4. rotateTowardTarget(Vector3 target, Vector3 up)Post-multiplies this matrix by a rotation toward a target.Matrix4Matrix4. scale(float scaleX, float scaleY, float scaleZ)Postmultiplies this matrix with a scale matrix.Matrix4Matrix4. scl(float scale)Matrix4Matrix4. scl(float x, float y, float z)Matrix4Matrix4. scl(Vector3 scale)Matrix4Matrix4. set(float[] values)Sets the matrix to the given matrix as a float array.Matrix4Matrix4. set(float quaternionX, float quaternionY, float quaternionZ, float quaternionW)Sets the matrix to a rotation matrix representing the quaternion.Matrix4Matrix4. set(float translationX, float translationY, float translationZ, float quaternionX, float quaternionY, float quaternionZ, float quaternionW)Sets the matrix to a rotation matrix representing the translation and quaternion.Matrix4Matrix4. set(float translationX, float translationY, float translationZ, float quaternionX, float quaternionY, float quaternionZ, float quaternionW, float scaleX, float scaleY, float scaleZ)Sets the matrix to a rotation matrix representing the translation and quaternion.Matrix4Matrix4. set(Affine2 affine)Sets this matrix to the given affine matrix.Matrix4Matrix4. set(Matrix3 mat)Sets this matrix to the given 3x3 matrix.Matrix4Matrix4. set(Matrix4 matrix)Sets the matrix to the given matrix.Matrix4Matrix4. set(Quaternion quaternion)Sets the matrix to a rotation matrix representing the quaternion.Matrix4Matrix4. set(Vector3 position, Quaternion orientation)Set this matrix to the specified translation and rotation.Matrix4Matrix4. set(Vector3 position, Quaternion orientation, Vector3 scale)Set this matrix to the specified translation, rotation and scale.Matrix4Matrix4. set(Vector3 xAxis, Vector3 yAxis, Vector3 zAxis, Vector3 pos)Sets the four columns of the matrix which correspond to the x-, y- and z-axis of the vector space this matrix creates as well as the 4th column representing the translation of any point that is multiplied by this matrix.Matrix4Matrix4. setAsAffine(Affine2 affine)Assumes that this matrix is a 2D affine transformation, copying only the relevant components.Matrix4Matrix4. setAsAffine(Matrix4 mat)Assumes that both matrices are 2D affine transformations, copying only the relevant components.Matrix4Matrix4. setFromEulerAngles(float yaw, float pitch, float roll)Sets this matrix to a rotation matrix from the given euler angles.Matrix4Matrix4. setFromEulerAnglesRad(float yaw, float pitch, float roll)Sets this matrix to a rotation matrix from the given euler angles.Matrix4Matrix4. setToLookAt(Vector3 direction, Vector3 up)Sets the matrix to a look at matrix with a direction and an up vector.Matrix4Matrix4. setToLookAt(Vector3 position, Vector3 target, Vector3 up)Sets this matrix to a look at matrix with the given position, target and up vector.Matrix4Matrix4. setToOrtho(float left, float right, float bottom, float top, float near, float far)Sets the matrix to an orthographic projection like glOrtho (http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml) following the OpenGL equivalentMatrix4Matrix4. setToOrtho2D(float x, float y, float width, float height)Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height.Matrix4Matrix4. setToOrtho2D(float x, float y, float width, float height, float near, float far)Sets this matrix to an orthographic projection matrix with the origin at (x,y) extending by width and height, having a near and far plane.Matrix4Matrix4. setToProjection(float near, float far, float fovy, float aspectRatio)Sets the matrix to a projection matrix with a near- and far plane, a field of view in degrees and an aspect ratio.Matrix4Matrix4. setToProjection(float left, float right, float bottom, float top, float near, float far)Sets the matrix to a projection matrix with a near/far plane, and left, bottom, right and top specifying the points on the near plane that are mapped to the lower left and upper right corners of the viewport.Matrix4Matrix4. setToRotation(float axisX, float axisY, float axisZ, float degrees)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToRotation(float x1, float y1, float z1, float x2, float y2, float z2)Set the matrix to a rotation matrix between two vectors.Matrix4Matrix4. setToRotation(Vector3 axis, float degrees)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToRotation(Vector3 v1, Vector3 v2)Set the matrix to a rotation matrix between two vectors.Matrix4Matrix4. setToRotationRad(float axisX, float axisY, float axisZ, float radians)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToRotationRad(Vector3 axis, float radians)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToScaling(float x, float y, float z)Sets this matrix to a scaling matrixMatrix4Matrix4. setToScaling(Vector3 vector)Sets this matrix to a scaling matrixMatrix4Matrix4. setToTranslation(float x, float y, float z)Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the translation vector.Matrix4Matrix4. setToTranslation(Vector3 vector)Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the translation vector.Matrix4Matrix4. setToTranslationAndScaling(float translationX, float translationY, float translationZ, float scalingX, float scalingY, float scalingZ)Sets this matrix to a translation and scaling matrix by first overwriting it with an identity and then setting the translation vector in the 4th column and the scaling vector in the diagonal.Matrix4Matrix4. setToTranslationAndScaling(Vector3 translation, Vector3 scaling)Sets this matrix to a translation and scaling matrix by first overwriting it with an identity and then setting the translation vector in the 4th column and the scaling vector in the diagonal.Matrix4Matrix4. setToWorld(Vector3 position, Vector3 forward, Vector3 up)Matrix4Matrix4. setTranslation(float x, float y, float z)Sets the 4th column to the translation vector.Matrix4Matrix4. setTranslation(Vector3 vector)Sets the 4th column to the translation vector.Matrix4Matrix4. toNormalMatrix()removes the translational part and transposes the matrix.Matrix4Matrix4. tra()Transposes the matrix.Matrix4Matrix4. translate(float x, float y, float z)Postmultiplies this matrix by a translation matrix.Matrix4Matrix4. translate(Vector3 translation)Postmultiplies this matrix by a translation matrix.Matrix4Matrix4. trn(float x, float y, float z)Adds a translational component to the matrix in the 4th column.Matrix4Matrix4. trn(Vector3 vector)Adds a translational component to the matrix in the 4th column.Methods in com.badlogic.gdx.math with parameters of type Matrix4 Modifier and Type Method Description Matrix4Matrix4. avg(Matrix4[] t)Averages the given transforms and stores the result in this matrix.Matrix4Matrix4. avg(Matrix4[] t, float[] w)Averages the given transforms with the given weights and stores the result in this matrix.Matrix4Matrix4. avg(Matrix4 other, float w)Averages the given transform with this one and stores the result in this matrix.static booleanIntersector. intersectRayOrientedBounds(Ray ray, BoundingBox bounds, Matrix4 transform, Vector3 intersection)Check whether the givenRayandOrientedBoundingBoxintersect.static booleanIntersector. intersectRayOrientedBoundsFast(Ray ray, BoundingBox bounds, Matrix4 transform)Check whether the givenRayand OrientedBoundingBoxintersect.Matrix4Matrix4. lerp(Matrix4 matrix, float alpha)Linearly interpolates between this matrix and the given matrix mixing by alphaMatrix4Matrix4. mul(Matrix4 matrix)Postmultiplies this matrix with the given matrix, storing the result in this matrix.Vector3Vector3. mul(Matrix4 matrix)Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1.Matrix4Matrix4. mulLeft(Matrix4 matrix)Premultiplies this matrix with the given matrix, storing the result in this matrix.Vector3Vector3. prj(Matrix4 matrix)Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1.Vector3Vector3. rot(Matrix4 matrix)Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling.Affine2Affine2. set(Matrix4 matrix)Copies the 2D transformation components from the provided 4x4 matrix.Matrix3Matrix3. set(Matrix4 mat)Sets this 3x3 matrix to the top left 3x3 corner of the provided 4x4 matrix.Matrix4Matrix4. set(Matrix4 matrix)Sets the matrix to the given matrix.Matrix4Matrix4. setAsAffine(Matrix4 mat)Assumes that both matrices are 2D affine transformations, copying only the relevant components.QuaternionQuaternion. setFromMatrix(boolean normalizeAxes, Matrix4 matrix)Sets the Quaternion from the given matrix, optionally removing any scaling.QuaternionQuaternion. setFromMatrix(Matrix4 matrix)Sets the Quaternion from the given rotation matrix, which must not contain scaling.Vector3Vector3. traMul(Matrix4 matrix)Multiplies the vector by the transpose of the given matrix, assuming the fourth (w) component of the vector is 1.Vector3Vector3. unrotate(Matrix4 matrix)Multiplies this vector by the transpose of the first three columns of the matrix.Vector3Vector3. untransform(Matrix4 matrix)Translates this vector in the direction opposite to the translation of the matrix and the multiplies this vector by the transpose of the first three columns of the matrix.voidFrustum. update(Matrix4 inverseProjectionView)Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g.Constructors in com.badlogic.gdx.math with parameters of type Matrix4 Constructor Description Matrix4(Matrix4 matrix)Constructs a matrix from the given matrix. -
Uses of Matrix4 in com.badlogic.gdx.math.collision
Fields in com.badlogic.gdx.math.collision declared as Matrix4 Modifier and Type Field Description Matrix4OrientedBoundingBox. transformTransform matrix.Methods in com.badlogic.gdx.math.collision that return Matrix4 Modifier and Type Method Description Matrix4OrientedBoundingBox. getTransform()Get the current transformation matrix.Methods in com.badlogic.gdx.math.collision with parameters of type Matrix4 Modifier and Type Method Description BoundingBoxBoundingBox. ext(BoundingBox bounds, Matrix4 transform)Extends this bounding box by the given transformed bounding box.BoundingBoxBoundingBox. mul(Matrix4 transform)Multiplies the bounding box by the given matrix.voidOrientedBoundingBox. mul(Matrix4 transform)RayRay. mul(Matrix4 matrix)Multiplies the ray by the given matrix.OrientedBoundingBoxOrientedBoundingBox. set(BoundingBox bounds, Matrix4 transform)voidOrientedBoundingBox. setTransform(Matrix4 transform)Constructors in com.badlogic.gdx.math.collision with parameters of type Matrix4 Constructor Description OrientedBoundingBox(BoundingBox bounds, Matrix4 transform)Constructs a new oriented bounding box from the given bounding box and transform. -
Uses of Matrix4 in com.badlogic.gdx.scenes.scene2d
Methods in com.badlogic.gdx.scenes.scene2d that return Matrix4 Modifier and Type Method Description protected Matrix4Group. computeTransform()Returns the transform for this group's coordinate system.Methods in com.badlogic.gdx.scenes.scene2d with parameters of type Matrix4 Modifier and Type Method Description protected voidGroup. applyTransform(Batch batch, Matrix4 transform)Set the batch's transformation matrix, often with the result ofGroup.computeTransform().protected voidGroup. applyTransform(ShapeRenderer shapes, Matrix4 transform)Set the shape renderer transformation matrix, often with the result ofGroup.computeTransform().Vector2Stage. toScreenCoordinates(Vector2 coords, Matrix4 transformMatrix)Transforms the coordinates to screen coordinates. -
Uses of Matrix4 in com.badlogic.gdx.scenes.scene2d.utils
Methods in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Matrix4 Modifier and Type Method Description static voidScissorStack. calculateScissors(Camera camera, float viewportX, float viewportY, float viewportWidth, float viewportHeight, Matrix4 batchTransform, Rectangle area, Rectangle scissor)static voidScissorStack. calculateScissors(Camera camera, Matrix4 batchTransform, Rectangle area, Rectangle scissor)Calculates a scissor rectangle using 0,0,Gdx.graphics.getWidth(),Gdx.graphics.getHeight() as the viewport. -
Uses of Matrix4 in com.badlogic.gdx.utils
Methods in com.badlogic.gdx.utils with parameters of type Matrix4 Modifier and Type Method Description static voidBufferUtils. transform(float[] data, int dimensions, int strideInBytes, int count, Matrix4 matrix)Multiply float vector components within the buffer with the specified matrix.static voidBufferUtils. transform(float[] data, int dimensions, int strideInBytes, int count, Matrix4 matrix, int offset)Multiply float vector components within the buffer with the specified matrix.static voidBufferUtils. transform(java.nio.Buffer data, int dimensions, int strideInBytes, int count, Matrix4 matrix)Multiply float vector components within the buffer with the specified matrix.static voidBufferUtils. transform(java.nio.Buffer data, int dimensions, int strideInBytes, int count, Matrix4 matrix, int offset)Multiply float vector components within the buffer with the specified matrix. -
Uses of Matrix4 in com.badlogic.gdx.utils.viewport
Methods in com.badlogic.gdx.utils.viewport with parameters of type Matrix4 Modifier and Type Method Description voidViewport. calculateScissors(Matrix4 batchTransform, Rectangle area, Rectangle scissor)Vector2Viewport. toScreenCoordinates(Vector2 worldCoords, Matrix4 transformMatrix)Transforms a point to real screen coordinates (as opposed to OpenGL ES window coordinates), where the origin is in the top left and the the y-axis is pointing downwards.
-