Java com.badlogic.gdx.math Vector3 fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.math Vector3 fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.math Vector3.

The text is from its open source code.

Field

Vector3X
Vector3Y
Vector3Z
Vector3Zero

Constructor

Vector3(float x, float y, float z)
Creates a vector with the given components
Vector3()
Constructs a vector at (0,0,0)
Vector3(final Vector3 vector)
Creates a vector from the given vector
Vector3(final float[] values)
Creates a vector from the given array.
Vector3(final Vector2 vector, float z)
Creates a vector from the given vector and z-component

Method

Vector3add(final Vector3 vector)
Vector3add(float values)
Adds the given value to all three components of the vector.
Vector3clamp(float min, float max)
Vector3cpy()
Vector3crs(final Vector3 vector)
Sets this vector to the cross product between it and the other vector.
floatdot(final Vector3 vector)
floatdot(float x, float y, float z)
Returns the dot product between this and the given vector.
floatdst(final Vector3 vector)
floatdst2(float x, float y, float z)
Returns the squared distance between this point and the given point
floatdst2(Vector3 point)
booleanequals(Object obj)
booleanisZero(final float margin)
booleanisZero()
floatlen()
floatlen2()
Vector3mul(final Matrix4 matrix)
Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1.
Vector3mul(Matrix3 matrix)
Left-multiplies the vector by the given matrix.
Vector3mul(final Quaternion quat)
Multiplies the vector by the given Quaternion .
Vector3mulAdd(Vector3 vec, float scalar)
Vector3mulAdd(Vector3 vec, Vector3 mulVec)
Vector3nor()
Vector3prj(final Matrix4 matrix)
Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1.
Vector3rot(final Matrix4 matrix)
Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling.
Vector3rotate(final Vector3 axis, float degrees)
Rotates this vector by the given angle in degrees around the given axis.
Vector3scl(float scalar)
Vector3scl(final Vector3 other)
Vector3set(float x, float y, float z)
Sets the vector to the given components
Vector3set(final Vector3 vector)
Vector3set(final float[] values)
Sets the components from the array.
Vector3sub(final Vector3 a_vec)
Vector3sub(float value)
Subtracts the given value from all components of this vector
StringtoString()