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

Inheritance
java.lang.Object
Vector3f
Syntax
public class Vector3f

Constructors

Vector3f(float x, float y, float z)

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

Methods

abs()

Declaration
public Vector3f abs()
Returns
Type Description
Vector3f

absolute()

Declaration
public Vector3f absolute()
Returns
Type Description
Vector3f

absolute(Vector3f dest)

Declaration
public Vector3f absolute(Vector3f dest)
Parameters
Type Name Description
Vector3f dest
Returns
Type Description
Vector3f

add(float r)

Declaration
public Vector3f add(float r)
Parameters
Type Name Description
float r
Returns
Type Description
Vector3f

add(float xr, float yr, float zr)

Declaration
public Vector3f add(float xr, float yr, float zr)
Parameters
Type Name Description
float xr
float yr
float zr
Returns
Type Description
Vector3f

add(Vector3f r)

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

angle(Vector3f v)

Declaration
public float angle(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
float

angleCos(Vector3f v)

Declaration
public float angleCos(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
float

angleSigned(float x, float y, float z, float nx, float ny, float nz)

Declaration
public float angleSigned(float x, float y, float z, float nx, float ny, float nz)
Parameters
Type Name Description
float x
float y
float z
float nx
float ny
float nz
Returns
Type Description
float

angleSigned(Vector3f v, Vector3f n)

Declaration
public float angleSigned(Vector3f v, Vector3f n)
Parameters
Type Name Description
Vector3f v
Vector3f n
Returns
Type Description
float

ceil()

Declaration
public Vector3f ceil()
Returns
Type Description
Vector3f

ceil(Vector3f dest)

Declaration
public Vector3f ceil(Vector3f dest)
Parameters
Type Name Description
Vector3f dest
Returns
Type Description
Vector3f

cross(Vector3f r)

Declaration
public Vector3f cross(Vector3f r)
Parameters
Type Name Description
Vector3f r
Returns
Type Description
Vector3f

distance(float x, float y, float z)

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

distance(float x1, float y1, float z1, float x2, float y2, float z2)

Declaration
public static float distance(float x1, float y1, float z1, float x2, float y2, float z2)
Parameters
Type Name Description
float x1
float y1
float z1
float x2
float y2
float z2
Returns
Type Description
float

distance(Vector3f v)

Declaration
public float distance(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
float

distanceSquared(float x, float y, float z)

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

distanceSquared(float x1, float y1, float z1, float x2, float y2, float z2)

Declaration
public static float distanceSquared(float x1, float y1, float z1, float x2, float y2, float z2)
Parameters
Type Name Description
float x1
float y1
float z1
float x2
float y2
float z2
Returns
Type Description
float

distanceSquared(Vector3f v)

Declaration
public float distanceSquared(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
float

div(float r)

Declaration
public Vector3f div(float r)
Parameters
Type Name Description
float r
Returns
Type Description
Vector3f

div(Vector3f r)

Declaration
public Vector3f div(Vector3f r)
Parameters
Type Name Description
Vector3f r
Returns
Type Description
Vector3f

dot(float x, float y, float z)

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

dot(Vector3f r)

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

equals(Vector3f r)

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

floor()

Declaration
public Vector3f floor()
Returns
Type Description
Vector3f

floor(Vector3f dest)

Declaration
public Vector3f floor(Vector3f dest)
Parameters
Type Name Description
Vector3f dest
Returns
Type Description
Vector3f

get(int component)

Declaration
public float get(int component)
Parameters
Type Name Description
int component
Returns
Type Description
float

getXY()

Declaration
public Vector2f getXY()
Returns
Type Description
Vector2f

getXZ()

Declaration
public Vector2f getXZ()
Returns
Type Description
Vector2f

getYX()

Declaration
public Vector2f getYX()
Returns
Type Description
Vector2f

getYZ()

Declaration
public Vector2f getYZ()
Returns
Type Description
Vector2f

getZX()

Declaration
public Vector2f getZX()
Returns
Type Description
Vector2f

getZY()

Declaration
public Vector2f getZY()
Returns
Type Description
Vector2f

half(float x, float y, float z)

Declaration
public Vector3f half(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
Vector3f

half(float x, float y, float z, Vector3f dest)

Declaration
public Vector3f half(float x, float y, float z, Vector3f dest)
Parameters
Type Name Description
float x
float y
float z
Vector3f dest
Returns
Type Description
Vector3f

half(Vector3f other)

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

half(Vector3f other, Vector3f dest)

Declaration
public Vector3f half(Vector3f other, Vector3f dest)
Parameters
Type Name Description
Vector3f other
Vector3f dest
Returns
Type Description
Vector3f

hashCode()

Declaration
public int hashCode()
Returns
Type Description
int

hermite(Vector3f t0, Vector3f v1, Vector3f t1, float t, Vector3f dest)

Declaration
public Vector3f hermite(Vector3f t0, Vector3f v1, Vector3f t1, float t, Vector3f dest)
Parameters
Type Name Description
Vector3f t0
Vector3f v1
Vector3f t1
float t
Vector3f dest
Returns
Type Description
Vector3f

isFinite()

Declaration
public boolean isFinite()
Returns
Type Description
boolean

length()

Declaration
public float length()
Returns
Type Description
float

lengthSquared()

Declaration
public float lengthSquared()
Returns
Type Description
float

lengthSquared(float x, float y, float z)

Declaration
public static float lengthSquared(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
float

lerp(Vector3f dest, float lerpFactor)

Declaration
public Vector3f lerp(Vector3f dest, float lerpFactor)
Parameters
Type Name Description
Vector3f dest
float lerpFactor
Returns
Type Description
Vector3f

max()

Declaration
public float max()
Returns
Type Description
float

maxComponent()

Declaration
public int maxComponent()
Returns
Type Description
int

min(Vector3f v)

Declaration
public float min(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
float

minComponent()

Declaration
public int minComponent()
Returns
Type Description
int

mul(float r)

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

mul(Vector3f r)

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

negate()

Declaration
public Vector3f negate()
Returns
Type Description
Vector3f

negate(Vector3f dest)

Declaration
public Vector3f negate(Vector3f dest)
Parameters
Type Name Description
Vector3f dest
Returns
Type Description
Vector3f

normalize()

Declaration
public Vector3f normalize()
Returns
Type Description
Vector3f

orthogonalize(Vector3f v)

Declaration
public Vector3f orthogonalize(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
Vector3f

orthogonalize(Vector3f v, Vector3f dest)

Declaration
public Vector3f orthogonalize(Vector3f v, Vector3f dest)
Parameters
Type Name Description
Vector3f v
Vector3f dest
Returns
Type Description
Vector3f

orthogonalizeUnit(Vector3f v)

Declaration
public Vector3f orthogonalizeUnit(Vector3f v)
Parameters
Type Name Description
Vector3f v
Returns
Type Description
Vector3f

orthogonalizeUnit(Vector3f v, Vector3f dest)

Declaration
public Vector3f orthogonalizeUnit(Vector3f v, Vector3f dest)
Parameters
Type Name Description
Vector3f v
Vector3f dest
Returns
Type Description
Vector3f

reflect(float x, float y, float z)

Declaration
public Vector3f reflect(float x, float y, float z)
Parameters
Type Name Description
float x
float y
float z
Returns
Type Description
Vector3f

reflect(float x, float y, float z, Vector3f dest)

Declaration
public Vector3f reflect(float x, float y, float z, Vector3f dest)
Parameters
Type Name Description
float x
float y
float z
Vector3f dest
Returns
Type Description
Vector3f

reflect(Vector3f normal)

Declaration
public Vector3f reflect(Vector3f normal)
Parameters
Type Name Description
Vector3f normal
Returns
Type Description
Vector3f

reflect(Vector3f normal, Vector3f dest)

Declaration
public Vector3f reflect(Vector3f normal, Vector3f dest)
Parameters
Type Name Description
Vector3f normal
Vector3f dest
Returns
Type Description
Vector3f

rotate(float angleInDegrees, Vector3f axis)

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

rotate(Quaternion rotation)

Declaration
public Vector3f rotate(Quaternion rotation)
Parameters
Type Name Description
Quaternion rotation
Returns
Type Description
Vector3f

rotateAxis(float angle, float aX, float aY, float aZ, Vector3f dest)

Declaration
public Vector3f rotateAxis(float angle, float aX, float aY, float aZ, Vector3f dest)
Parameters
Type Name Description
float angle
float aX
float aY
float aZ
Vector3f dest
Returns
Type Description
Vector3f

rotateAxis(float angle, float x, float y, float z)

Declaration
public Vector3f rotateAxis(float angle, float x, float y, float z)
Parameters
Type Name Description
float angle
float x
float y
float z
Returns
Type Description
Vector3f

rotateX(float angle)

Declaration
public Vector3f rotateX(float angle)
Parameters
Type Name Description
float angle
Returns
Type Description
Vector3f

rotateX(float angle, Vector3f dest)

Declaration
public Vector3f rotateX(float angle, Vector3f dest)
Parameters
Type Name Description
float angle
Vector3f dest
Returns
Type Description
Vector3f

rotateY(float angle)

Declaration
public Vector3f rotateY(float angle)
Parameters
Type Name Description
float angle
Returns
Type Description
Vector3f

rotateY(float angle, Vector3f dest)

Declaration
public Vector3f rotateY(float angle, Vector3f dest)
Parameters
Type Name Description
float angle
Vector3f dest
Returns
Type Description
Vector3f

rotateZ(float angle)

Declaration
public Vector3f rotateZ(float angle)
Parameters
Type Name Description
float angle
Returns
Type Description
Vector3f

rotateZ(float angle, Vector3f dest)

Declaration
public Vector3f rotateZ(float angle, Vector3f dest)
Parameters
Type Name Description
float angle
Vector3f dest
Returns
Type Description
Vector3f

round()

Declaration
public Vector3f round()
Returns
Type Description
Vector3f

round(Vector3f dest)

Declaration
public Vector3f round(Vector3f dest)
Parameters
Type Name Description
Vector3f dest
Returns
Type Description
Vector3f

set(float x, float y, float z)

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

set(Vector3f other)

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

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

smoothStep(Vector3f v, float t, Vector3f dest)

Declaration
public Vector3f smoothStep(Vector3f v, float t, Vector3f dest)
Parameters
Type Name Description
Vector3f v
float t
Vector3f dest
Returns
Type Description
Vector3f

sub(float r)

Declaration
public Vector3f sub(float r)
Parameters
Type Name Description
float r
Returns
Type Description
Vector3f

sub(Vector3f r)

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

toString()

Declaration
public String toString()
Returns
Type Description
String

x()

Declaration
public float x()
Returns
Type Description
float

y()

Declaration
public float y()
Returns
Type Description
float

z()

Declaration
public float z()
Returns
Type Description
float

zero()

Declaration
public Vector3f zero()
Returns
Type Description
Vector3f
Back to top Generated by DocFX