• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class Matrix4f

Inheritance
java.lang.Object
Matrix
Matrix4f
Syntax
public class Matrix4f implements Matrix

Constructors

Matrix4f()

Declaration
public Matrix4f()

Matrix4f(float[][] _m)

Declaration
public Matrix4f(float[][] _m)
Parameters
Type Name Description
float _m

Methods

get()

Declaration
public float [][] get()
Returns
Type Description
float [][]

get(int x, int y)

Declaration
public float get(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
float
Overrides
Matrix.get(int i, int j)

getCols()

Declaration
public int getCols()
Returns
Type Description
int
Overrides
Matrix.getCols()

getRows()

Declaration
public int getRows()
Returns
Type Description
int
Overrides
Matrix.getRows()

initIdentity()

Declaration
public Matrix4f initIdentity()
Returns
Type Description
Matrix4f

initOrthographic(float left, float right, float bottom, float top, float near, float far)

Declaration
public Matrix4f initOrthographic(float left, float right, float bottom, float top, float near, float far)
Parameters
Type Name Description
float left
float right
float bottom
float top
float near
float far
Returns
Type Description
Matrix4f

initPerspective(float fov, float width, float height, float zNear, float zFar)

Initializes The Perspective.

Declaration
public Matrix4f initPerspective(float fov, float width, float height, float zNear, float zFar)
Parameters
Type Name Description
float fov
float width
float height
float zNear
float zFar
Returns
Type Description
Matrix4f

initProjection(float fov, float aspectRatio, float zNear, float zFar)

Declaration
public Matrix4f initProjection(float fov, float aspectRatio, float zNear, float zFar)
Parameters
Type Name Description
float fov
float aspectRatio
float zNear
float zFar
Returns
Type Description
Matrix4f

initRotation(float x, float y, float z)

Declaration
public Matrix4f initRotation(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
Matrix4f

initRotation(Vector3f forward, Vector3f up)

Declaration
public Matrix4f initRotation(Vector3f forward, Vector3f up)
Parameters
Type Name Description
Vector3f forward
Vector3f up
Returns
Type Description
Matrix4f

initRotation(Vector3f forward, Vector3f up, Vector3f right)

Declaration
public Matrix4f initRotation(Vector3f forward, Vector3f up, Vector3f right)
Parameters
Type Name Description
Vector3f forward
Vector3f up
Vector3f right
Returns
Type Description
Matrix4f

initScale(float x, float y, float z)

Declaration
public Matrix4f initScale(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
Matrix4f

initTranslation(float x, float y, float z)

Declaration
public Matrix4f initTranslation(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
Matrix4f

invertGeneric()

Declaration
public Matrix4f invertGeneric()
Returns
Type Description
Matrix4f

invertGeneric(Matrix4f dest)

Declaration
public Matrix4f invertGeneric(Matrix4f dest)
Parameters
Type Name Description
Matrix4f dest
Returns
Type Description
Matrix4f

invertPerspective(Matrix4f dest)

Declaration
public Matrix4f invertPerspective(Matrix4f dest)
Parameters
Type Name Description
Matrix4f dest
Returns
Type Description
Matrix4f

mul(Matrix4f r)

Declaration
public Matrix4f mul(Matrix4f r)
Parameters
Type Name Description
Matrix4f r
Returns
Type Description
Matrix4f

set(float[][] m)

Declaration
public Matrix4f set(float[][] m)
Parameters
Type Name Description
float m
Returns
Type Description
Matrix4f

set(int x, int y, float value)

Declaration
public void set(int x, int y, float value)
Parameters
Type Name Description
int x
int y
float value

transform(Vector3f other)

Declaration
public Vector3f transform(Vector3f other)
Parameters
Type Name Description
Vector3f other
Returns
Type Description
Vector3f

transpose()

Transpose the current matrix and return it in a new one.

Declaration
public Matrix4f transpose()
Returns
Type Description
Matrix4f

transpose(Matrix4f dest)

Declaration
public Matrix4f transpose(Matrix4f dest)
Parameters
Type Name Description
Matrix4f dest
Returns
Type Description
Matrix4f
Back to top Generated by DocFX