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

Inheritance
java.lang.Object
Vector2i
Syntax
public class Vector2i

Constructors

Vector2i()

Create a new Vector2i and initialize its components to zero.

Declaration
public Vector2i()

Vector2i(int s)

Create a new Vector2i and initialize both of its components with the given value.

Declaration
public Vector2i(int s)
Parameters
Type Name Description
int s

the value of both components

Vector2i(int x, int y)

Create a new Vector2i and initialize its components to the given values.

Declaration
public Vector2i(int x, int y)
Parameters
Type Name Description
int x

the x component

int y

the y component

Vector2i(Vector2i v)

Create a new Vector2i and initialize its components to the one of the given vector.

Declaration
public Vector2i(Vector2i v)
Parameters
Type Name Description
Vector2i v

the Vector2ic to copy the values from

Methods

add(int x, int y)

Declaration
public Vector2i add(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
Vector2i

add(Vector2i v)

Declaration
public Vector2i add(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2i

equals(int x, int y)

Declaration
public boolean equals(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
boolean

equals(Object obj)

Declaration
public boolean equals(Object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
boolean

length()

Declaration
public double length()
Returns
Type Description
double

length(int x, int y)

Declaration
public static double length(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
double

lengthSquared()

Declaration
public long lengthSquared()
Returns
Type Description
long

lengthSquared(int x, int y)

Declaration
public static long lengthSquared(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
long

max(Vector2i v)

Declaration
public Vector2i max(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2i

maxComponent()

Declaration
public int maxComponent()
Returns
Type Description
int

min(Vector2i v)

Declaration
public Vector2i min(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2i

minComponent()

Declaration
public int minComponent()
Returns
Type Description
int

mul(int scalar)

Declaration
public Vector2i mul(int scalar)
Parameters
Type Name Description
int scalar
Returns
Type Description
Vector2i

mul(Vector2i v)

Declaration
public Vector2i mul(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2i

negate()

Negate this vector.

Declaration
public Vector2i negate()
Returns
Type Description
Vector2i

a vector holding the result

negate(Vector2i dest)

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

set(int s)

Set the x and y components to the supplied value.

Declaration
public Vector2i set(int s)
Parameters
Type Name Description
int s

scalar value of both components

Returns
Type Description
Vector2i

this

set(int x, int y)

Declaration
public Vector2i set(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
Vector2i

set(Vector2i v)

Declaration
public Vector2i set(Vector2i v)
Parameters
Type Name Description
Vector2i v
Returns
Type Description
Vector2i

setX(int x)

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

setY(int y)

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

sub(int x, int y)

Declaration
public Vector2i sub(int x, int y)
Parameters
Type Name Description
int x
int y
Returns
Type Description
Vector2i

toString()

Declaration
public String toString()
Returns
Type Description
String

x()

Declaration
public int x()
Returns
Type Description
int

y()

Declaration
public int y()
Returns
Type Description
int

zero()

Set all components to zero.

Declaration
public Vector2i zero()
Returns
Type Description
Vector2i

a vector holding the result

Back to top Generated by DocFX