Uses of Class
com.badlogic.gdx.math.Vector4
-
Packages that use Vector4 Package Description com.badlogic.gdx.graphics.glutils com.badlogic.gdx.math -
-
Uses of Vector4 in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Vector4 Modifier and Type Method Description voidShaderProgram. setUniformf(int location, Vector4 values)voidShaderProgram. setUniformf(java.lang.String name, Vector4 values)Sets the uniform with the given name. -
Uses of Vector4 in com.badlogic.gdx.math
Fields in com.badlogic.gdx.math declared as Vector4 Modifier and Type Field Description static Vector4Vector4. Wstatic Vector4Vector4. Xstatic Vector4Vector4. Ystatic Vector4Vector4. Zstatic Vector4Vector4. ZeroMethods in com.badlogic.gdx.math that return Vector4 Modifier and Type Method Description Vector4Vector4. add(float values)Adds the given value to all four components of the vector.Vector4Vector4. add(float x, float y, float z, float w)Adds the given components to this vectorVector4Vector4. add(Vector4 vector)Vector4Vector4. clamp(float min, float max)Vector4Vector4. cpy()Vector4Vector4. fromString(java.lang.String v)Sets thisVector4to the value represented by the specified string according to the format oftoString().Vector4Vector4. interpolate(Vector4 target, float alpha, Interpolation interpolator)Vector4Vector4. lerp(Vector4 target, float alpha)Vector4Vector4. limit(float limit)Vector4Vector4. limit2(float limit2)Vector4Vector4. mulAdd(Vector4 vec, float scalar)Vector4Vector4. mulAdd(Vector4 vec, Vector4 mulVec)Vector4Vector4. nor()Vector4Vector4. scl(float scalar)Multiplies each component of this vector by the given scalarVector4Vector4. scl(float vx, float vy, float vz, float vw)Scales this vector by the given valuesVector4Vector4. scl(Vector4 other)Multiplies each component of this vector by the corresponding component in otherVector4Vector4. set(float[] values)Sets the components from the array.Vector4Vector4. set(float x, float y, float z, float w)Sets the vector to the given componentsVector4Vector4. set(Vector2 vector, float z, float w)Sets the components to the given Vector2, z-component and w-componentVector4Vector4. set(Vector3 vector, float w)Sets the components of the given vector3 and w-componentVector4Vector4. set(Vector4 vector)Vector4Vector4. setLength(float len)Vector4Vector4. setLength2(float len2)Vector4Vector4. setToRandomDirection()Vector4Vector4. setZero()Vector4Vector4. sub(float value)Subtracts the given value from all components of this vectorVector4Vector4. sub(float x, float y, float z, float w)Subtracts the given components from this vector.Vector4Vector4. sub(Vector4 a_vec)Methods in com.badlogic.gdx.math with parameters of type Vector4 Modifier and Type Method Description Vector4Vector4. add(Vector4 vector)floatVector4. dot(Vector4 vector)floatVector4. dst(Vector4 vector)floatVector4. dst2(Vector4 point)booleanVector4. epsilonEquals(Vector4 other)Compares this vector with the other vector usingMathUtils.FLOAT_ROUNDING_ERRORfor its epsilon.booleanVector4. epsilonEquals(Vector4 other, float epsilon)booleanVector4. hasOppositeDirection(Vector4 vector)booleanVector4. hasSameDirection(Vector4 vector)booleanVector4. idt(Vector4 vector)Returns true if this vector and the vector parameter have identical components.Vector4Vector4. interpolate(Vector4 target, float alpha, Interpolation interpolator)booleanVector4. isCollinear(Vector4 other)booleanVector4. isCollinear(Vector4 other, float epsilon)booleanVector4. isCollinearOpposite(Vector4 other)booleanVector4. isCollinearOpposite(Vector4 other, float epsilon)booleanVector4. isOnLine(Vector4 other)booleanVector4. isOnLine(Vector4 other, float epsilon)booleanVector4. isPerpendicular(Vector4 vector)booleanVector4. isPerpendicular(Vector4 vector, float epsilon)Vector4Vector4. lerp(Vector4 target, float alpha)Vector4Vector4. mulAdd(Vector4 vec, float scalar)Vector4Vector4. mulAdd(Vector4 vec, Vector4 mulVec)Vector4Vector4. scl(Vector4 other)Multiplies each component of this vector by the corresponding component in otherVector4Vector4. set(Vector4 vector)Vector4Vector4. sub(Vector4 a_vec)Constructors in com.badlogic.gdx.math with parameters of type Vector4 Constructor Description Vector4(Vector4 vector)Creates a vector from the given Vector4
-