• 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 Quaternion

Inheritance
java.lang.Object
Quaternion
Syntax
public class Quaternion

Constructors

Quaternion()

Declaration
public Quaternion()

Quaternion(float x, float y, float z, float w)

Declaration
public Quaternion(float x, float y, float z, float w)
Parameters
Type Name Description
float x
float y
float z
float w

Quaternion(Matrix4f rot)

Declaration
public Quaternion(Matrix4f rot)
Parameters
Type Name Description
Matrix4f rot

Quaternion(Quaternion r)

Declaration
public Quaternion(Quaternion r)
Parameters
Type Name Description
Quaternion r

Quaternion(Vector3f axis, float anglerad)

Declaration
public Quaternion(Vector3f axis, float anglerad)
Parameters
Type Name Description
Vector3f axis
float anglerad

Methods

add(float x, float y, float z, float w)

Declaration
public Quaternion add(float x, float y, float z, float w)
Parameters
Type Name Description
float x
float y
float z
float w
Returns
Type Description
Quaternion

add(Quaternion r)

Declaration
public Quaternion add(Quaternion r)
Parameters
Type Name Description
Quaternion r
Returns
Type Description
Quaternion

conjugate()

Declaration
public Quaternion conjugate()
Returns
Type Description
Quaternion

dot(float x, float y, float z, float w)

Declaration
public float dot(float x, float y, float z, float w)
Parameters
Type Name Description
float x
float y
float z
float w
Returns
Type Description
float

dot(Quaternion r)

Declaration
public float dot(Quaternion r)
Parameters
Type Name Description
Quaternion r
Returns
Type Description
float

equals(Quaternion r)

Declaration
public boolean equals(Quaternion r)
Parameters
Type Name Description
Quaternion r
Returns
Type Description
boolean

getBack()

Declaration
public Vector3f getBack()
Returns
Type Description
Vector3f

getDown()

Declaration
public Vector3f getDown()
Returns
Type Description
Vector3f

getForward()

Declaration
public Vector3f getForward()
Returns
Type Description
Vector3f

getLeft()

Declaration
public Vector3f getLeft()
Returns
Type Description
Vector3f

getRight()

Declaration
public Vector3f getRight()
Returns
Type Description
Vector3f

getUp()

Declaration
public Vector3f getUp()
Returns
Type Description
Vector3f

getW()

Declaration
public float getW()
Returns
Type Description
float

getX()

Declaration
public float getX()
Returns
Type Description
float

getY()

Declaration
public float getY()
Returns
Type Description
float

getZ()

Declaration
public float getZ()
Returns
Type Description
float

initRotationRad(Vector3f axis, float angleInRadians)

Declaration
public Quaternion initRotationRad(Vector3f axis, float angleInRadians)
Parameters
Type Name Description
Vector3f axis
float angleInRadians
Returns
Type Description
Quaternion

length()

Declaration
public float length()
Returns
Type Description
float

mul(float r)

Declaration
public Quaternion mul(float r)
Parameters
Type Name Description
float r
Returns
Type Description
Quaternion

mul(Quaternion r)

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

mul(Vector3f r)

Declaration
public Quaternion mul(Vector3f r)
Parameters
Type Name Description
Vector3f r
Returns
Type Description
Quaternion

mul(Vector3i r)

Declaration
public Quaternion mul(Vector3i r)
Parameters
Type Name Description
Vector3i r
Returns
Type Description
Quaternion

nlerp(Quaternion dest, float lerpFactor, boolean shortest)

Declaration
public Quaternion nlerp(Quaternion dest, float lerpFactor, boolean shortest)
Parameters
Type Name Description
Quaternion dest
float lerpFactor
boolean shortest
Returns
Type Description
Quaternion

normalize()

Declaration
public Quaternion normalize()
Returns
Type Description
Quaternion

rotate(Vector3f axis, float angleRad)

Declaration
public Quaternion rotate(Vector3f axis, float angleRad)
Parameters
Type Name Description
Vector3f axis
float angleRad
Returns
Type Description
Quaternion

set(float x, float y, float z, float w)

Declaration
public Quaternion set(float x, float y, float z, float w)
Parameters
Type Name Description
float x
float y
float z
float w
Returns
Type Description
Quaternion

set(Quaternion other)

Declaration
public Quaternion set(Quaternion other)
Parameters
Type Name Description
Quaternion other
Returns
Type Description
Quaternion

setW(float w)

Declaration
public void setW(float w)
Parameters
Type Name Description
float w

setX(float x)

Declaration
public void setX(float x)
Parameters
Type Name Description
float x

setY(float y)

Declaration
public void setY(float y)
Parameters
Type Name Description
float y

setZ(float z)

Declaration
public void setZ(float z)
Parameters
Type Name Description
float z

slerp(Quaternion dest, float lerpFactor, boolean shortest)

Declaration
public Quaternion slerp(Quaternion dest, float lerpFactor, boolean shortest)
Parameters
Type Name Description
Quaternion dest
float lerpFactor
boolean shortest
Returns
Type Description
Quaternion

sub(float x, float y, float z, float w)

Declaration
public Quaternion sub(float x, float y, float z, float w)
Parameters
Type Name Description
float x
float y
float z
float w
Returns
Type Description
Quaternion

sub(Quaternion r)

Declaration
public Quaternion sub(Quaternion r)
Parameters
Type Name Description
Quaternion r
Returns
Type Description
Quaternion

toRotationMatrix()

Declaration
public Matrix4f toRotationMatrix()
Returns
Type Description
Matrix4f
Back to top Generated by DocFX