Uses of Class
com.badlogic.gdx.math.Vector3
-
-
Uses of Vector3 in com.badlogic.gdx.graphics
Fields in com.badlogic.gdx.graphics declared as Vector3 Modifier and Type Field Description Vector3Camera. directionthe unit length direction vector of the cameraVector3Cubemap.CubemapSide. directionThe direction vector to target the side.Vector3Camera. positionthe position of the cameraVector3Camera. upthe unit length up vector of the cameraVector3Cubemap.CubemapSide. upThe up vector to target the side.Methods in com.badlogic.gdx.graphics that return Vector3 Modifier and Type Method Description Vector3Cubemap.CubemapSide. getDirection(Vector3 out)Vector3Cubemap.CubemapSide. getUp(Vector3 out)Vector3Camera. project(Vector3 worldCoords)Projects theVector3given in world space to screen coordinates.Vector3Camera. project(Vector3 worldCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight)Projects theVector3given in world space to screen coordinates.Vector3Camera. unproject(Vector3 screenCoords)Function to translate a point given in screen coordinates to world space.Vector3Camera. unproject(Vector3 screenCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight)Function to translate a point given in screen coordinates to world space.Methods in com.badlogic.gdx.graphics with parameters of type Vector3 Modifier and Type Method Description floatMesh. calculateRadius(Vector3 center)Calculates the squared radius of the bounding sphere around the specified center for the specified part.floatMesh. calculateRadius(Vector3 center, int offset, int count)Calculates the squared radius of the bounding sphere around the specified center for the specified part.floatMesh. calculateRadius(Vector3 center, int offset, int count, Matrix4 transform)Calculates the squared radius of the bounding sphere around the specified center for the specified part.Vector3Cubemap.CubemapSide. getDirection(Vector3 out)Vector3Cubemap.CubemapSide. getUp(Vector3 out)voidCamera. lookAt(Vector3 target)Recalculates the direction of the camera to look at the point (x, y, z).Vector3Camera. project(Vector3 worldCoords)Projects theVector3given in world space to screen coordinates.Vector3Camera. project(Vector3 worldCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight)Projects theVector3given in world space to screen coordinates.voidCamera. rotate(Vector3 axis, float angle)Rotates the direction and up vector of this camera by the given angle around the given axis.voidCamera. rotateAround(Vector3 point, Vector3 axis, float angle)Rotates the direction and up vector of this camera by the given angle around the given axis, with the axis attached to given point.voidCamera. translate(Vector3 vec)Moves the camera by the given vector.Vector3Camera. unproject(Vector3 screenCoords)Function to translate a point given in screen coordinates to world space.Vector3Camera. unproject(Vector3 screenCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight)Function to translate a point given in screen coordinates to world space. -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d
Constructors in com.badlogic.gdx.graphics.g3d with parameters of type Vector3 Constructor Description ModelInstance(Model model, Vector3 position)Constructs a new ModelInstance at the specified position. -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.decals
Fields in com.badlogic.gdx.graphics.g3d.decals declared as Vector3 Modifier and Type Field Description protected Vector3Decal. positionMethods in com.badlogic.gdx.graphics.g3d.decals that return Vector3 Modifier and Type Method Description Vector3Decal. getPosition()Returns the position of this decal.Methods in com.badlogic.gdx.graphics.g3d.decals with parameters of type Vector3 Modifier and Type Method Description voidDecal. lookAt(Vector3 position, Vector3 up)Sets the rotation of the Decal to face the given point.voidDecal. setPosition(Vector3 pos)voidDecal. setRotation(Vector3 dir, Vector3 up)Sets the rotation of this decal based on the (normalized) direction and up vector.voidDecal. translate(Vector3 trans) -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.environment
Fields in com.badlogic.gdx.graphics.g3d.environment declared as Vector3 Modifier and Type Field Description Vector3DirectionalLight. directionVector3SpotLight. directionVector3PointLight. positionVector3SpotLight. positionprotected Vector3DirectionalShadowLight. tmpVMethods in com.badlogic.gdx.graphics.g3d.environment with parameters of type Vector3 Modifier and Type Method Description AmbientCubemapAmbientCubemap. add(float r, float g, float b, Vector3 direction)AmbientCubemapAmbientCubemap. add(Color color, Vector3 direction)AmbientCubemapAmbientCubemap. add(Color color, Vector3 point, Vector3 target)AmbientCubemapAmbientCubemap. add(Color color, Vector3 point, Vector3 target, float intensity)voidDirectionalShadowLight. begin(Vector3 center, Vector3 forward)DirectionalLightDirectionalLight. set(float r, float g, float b, Vector3 direction)DirectionalLightDirectionalLight. set(Color color, Vector3 direction)PointLightPointLight. set(float r, float g, float b, Vector3 position, float intensity)PointLightPointLight. set(Color color, Vector3 position, float intensity)SpotLightSpotLight. set(float r, float g, float b, Vector3 position, Vector3 direction, float intensity, float cutoffAngle, float exponent)SpotLightSpotLight. set(Color color, Vector3 position, Vector3 direction, float intensity, float cutoffAngle, float exponent)DirectionalLightDirectionalLight. setDirection(Vector3 direction)SpotLightSpotLight. setDirection(Vector3 direction)PointLightPointLight. setPosition(Vector3 position)SpotLightSpotLight. setPosition(Vector3 position)SpotLightSpotLight. setTarget(Vector3 target)voidDirectionalShadowLight. update(Vector3 center, Vector3 forward) -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.model
Fields in com.badlogic.gdx.graphics.g3d.model declared as Vector3 Modifier and Type Field Description Vector3MeshPart. centerThe offset to the center of the bounding box of the shape, only valid after the call toMeshPart.update().Vector3MeshPart. halfExtentsThe location, relative toMeshPart.center, of the corner of the axis aligned bounding box of the shape.Vector3Node. scalethe scale, relative to the parent, not modified by animationsVector3Node. translationthe translation, relative to the parent, not modified by animationsFields in com.badlogic.gdx.graphics.g3d.model with type parameters of type Vector3 Modifier and Type Field Description Array<NodeKeyframe<Vector3>>NodeAnimation. scalingthe scaling keyframes if any (might be null), sorted by time ascendingArray<NodeKeyframe<Vector3>>NodeAnimation. translationthe translation keyframes if any (might be null), sorted by time ascending -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.model.data
Fields in com.badlogic.gdx.graphics.g3d.model.data declared as Vector3 Modifier and Type Field Description Vector3ModelNode. scaleVector3ModelNode. translationFields in com.badlogic.gdx.graphics.g3d.model.data with type parameters of type Vector3 Modifier and Type Field Description Array<ModelNodeKeyframe<Vector3>>ModelNodeAnimation. scalingthe keyframes, defining the scaling of a node for a specific timestampArray<ModelNodeKeyframe<Vector3>>ModelNodeAnimation. translationthe keyframes, defining the translation of a node for a specific timestamp -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.particles
Fields in com.badlogic.gdx.graphics.g3d.particles declared as Vector3 Modifier and Type Field Description Vector3ParticleController. scaleTransform flagsprotected static Vector3ParticleControllerComponent. TMP_V1protected static Vector3ParticleControllerComponent. TMP_V2protected static Vector3ParticleControllerComponent. TMP_V3protected static Vector3ParticleControllerComponent. TMP_V4protected static Vector3ParticleControllerComponent. TMP_V5protected static Vector3ParticleControllerComponent. TMP_V6Methods in com.badlogic.gdx.graphics.g3d.particles with parameters of type Vector3 Modifier and Type Method Description voidParticleController. rotate(Vector3 axis, float angle)Post-multiplies the current transformation with a rotation matrix by the given angle around the given axis.voidParticleEffect. rotate(Vector3 axis, float angle)Applies the rotation by the given angle around the given axis to the current transformation matrix of each controller.voidParticleController. scale(Vector3 scale)Postmultiplies the current transformation with a scale matrix represented by the given scale vector.voidParticleEffect. scale(Vector3 scale)Applies the scale to the current transformation matrix of each controller.voidParticleController. setTranslation(Vector3 translation)voidParticleController. translate(Vector3 translation)Postmultiplies the current transformation with a translation matrix represented by the given translation.voidParticleEffect. translate(Vector3 translation)Applies the translation to the current transformation matrix of each controller. -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.particles.batches
Fields in com.badlogic.gdx.graphics.g3d.particles.batches declared as Vector3 Modifier and Type Field Description protected static Vector3BillboardParticleBatch. TMP_V1protected static Vector3PointSpriteParticleBatch. TMP_V1protected static Vector3BillboardParticleBatch. TMP_V2protected static Vector3BillboardParticleBatch. TMP_V3protected static Vector3BillboardParticleBatch. TMP_V4protected static Vector3BillboardParticleBatch. TMP_V5protected static Vector3BillboardParticleBatch. TMP_V6 -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.particles.influencers
Fields in com.badlogic.gdx.graphics.g3d.particles.influencers declared as Vector3 Modifier and Type Field Description protected static Vector3DynamicsModifier. TMP_V1protected static Vector3DynamicsModifier. TMP_V2protected static Vector3DynamicsModifier. TMP_V3 -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.particles.values
Fields in com.badlogic.gdx.graphics.g3d.particles.values declared as Vector3 Modifier and Type Field Description protected static Vector3PrimitiveSpawnShapeValue. TMP_V1Methods in com.badlogic.gdx.graphics.g3d.particles.values that return Vector3 Modifier and Type Method Description static Vector3MeshSpawnShapeValue.Triangle. pick(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Vector3 vector)Vector3MeshSpawnShapeValue.Triangle. pick(Vector3 vector)Vector3SpawnShapeValue. spawn(Vector3 vector, float percent)Methods in com.badlogic.gdx.graphics.g3d.particles.values with parameters of type Vector3 Modifier and Type Method Description static Vector3MeshSpawnShapeValue.Triangle. pick(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Vector3 vector)Vector3MeshSpawnShapeValue.Triangle. pick(Vector3 vector)Vector3SpawnShapeValue. spawn(Vector3 vector, float percent)voidCylinderSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidEllipseSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidLineSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidPointSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidRectangleSpawnShapeValue. spawnAux(Vector3 vector, float percent)abstract voidSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidUnweightedMeshSpawnShapeValue. spawnAux(Vector3 vector, float percent)voidWeightMeshSpawnShapeValue. spawnAux(Vector3 vector, float percent) -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.shaders
Methods in com.badlogic.gdx.graphics.g3d.shaders with parameters of type Vector3 Modifier and Type Method Description booleanBaseShader. set(int uniform, Vector3 value) -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.utils
Fields in com.badlogic.gdx.graphics.g3d.utils declared as Vector3 Modifier and Type Field Description Vector3MeshPartBuilder.VertexInfo. normalVector3MeshPartBuilder.VertexInfo. positionVector3BaseAnimationController.Transform. scaleVector3CameraInputController. targetThe target to rotate around.protected Vector3FirstPersonCameraController. tmpVector3BaseAnimationController.Transform. translationMethods in com.badlogic.gdx.graphics.g3d.utils with parameters of type Vector3 Modifier and Type Method Description voidMeshBuilder. box(Vector3 corner000, Vector3 corner010, Vector3 corner100, Vector3 corner110, Vector3 corner001, Vector3 corner011, Vector3 corner101, Vector3 corner111)Deprecated.voidMeshPartBuilder. box(Vector3 corner000, Vector3 corner010, Vector3 corner100, Vector3 corner110, Vector3 corner001, Vector3 corner011, Vector3 corner101, Vector3 corner111)Deprecated.use BoxShapeBuilder.build instead.voidMeshBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal)Deprecated.voidMeshBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Deprecated.voidMeshBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Deprecated.voidMeshBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Deprecated.voidMeshPartBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. circle(float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Deprecated.Use EllipseShapeBuilder.build instead.ModelModelBuilder. createArrow(Vector3 from, Vector3 to, Material material, long attributes)Convenience method to create a model with an arrow.voidMeshBuilder. ellipse(float width, float height, float innerWidth, float innerHeight, int divisions, Vector3 center, Vector3 normal)Deprecated.voidMeshBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal)Deprecated.voidMeshBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Deprecated.voidMeshBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Deprecated.voidMeshBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Deprecated.voidMeshPartBuilder. ellipse(float width, float height, float innerWidth, float innerHeight, int divisions, Vector3 center, Vector3 normal)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Deprecated.Use EllipseShapeBuilder.build instead.voidMeshPartBuilder. ellipse(float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Deprecated.Use EllipseShapeBuilder.build instead.BaseAnimationController.TransformBaseAnimationController.Transform. lerp(Vector3 targetT, Quaternion targetR, Vector3 targetS, float alpha)voidMeshBuilder. line(Vector3 p1, Color c1, Vector3 p2, Color c2)voidMeshBuilder. line(Vector3 p1, Vector3 p2)voidMeshPartBuilder. line(Vector3 p1, Color c1, Vector3 p2, Color c2)Add a line.voidMeshPartBuilder. line(Vector3 p1, Vector3 p2)Add a line.voidMeshBuilder. patch(Vector3 corner00, Vector3 corner10, Vector3 corner11, Vector3 corner01, Vector3 normal, int divisionsU, int divisionsV)Deprecated.voidMeshPartBuilder. patch(Vector3 corner00, Vector3 corner10, Vector3 corner11, Vector3 corner01, Vector3 normal, int divisionsU, int divisionsV)Deprecated.use PatchShapeBuilder.build instead.voidMeshBuilder. rect(Vector3 corner00, Vector3 corner10, Vector3 corner11, Vector3 corner01, Vector3 normal)voidMeshPartBuilder. rect(Vector3 corner00, Vector3 corner10, Vector3 corner11, Vector3 corner01, Vector3 normal)Add a rectangle.BaseAnimationController.TransformBaseAnimationController.Transform. set(Vector3 t, Quaternion r, Vector3 s)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. set(Vector3 pos, Vector3 nor, Color col, Vector2 uv)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. setNor(Vector3 nor)MeshPartBuilder.VertexInfoMeshPartBuilder.VertexInfo. setPos(Vector3 pos)voidMeshBuilder. triangle(Vector3 p1, Color c1, Vector3 p2, Color c2, Vector3 p3, Color c3)voidMeshBuilder. triangle(Vector3 p1, Vector3 p2, Vector3 p3)voidMeshPartBuilder. triangle(Vector3 p1, Color c1, Vector3 p2, Color c2, Vector3 p3, Color c3)Add a triangle.voidMeshPartBuilder. triangle(Vector3 p1, Vector3 p2, Vector3 p3)Add a triangle.shortMeshBuilder. vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv)shortMeshPartBuilder. vertex(Vector3 pos, Vector3 nor, Color col, Vector2 uv)Add a vertex, returns the index. -
Uses of Vector3 in com.badlogic.gdx.graphics.g3d.utils.shapebuilders
Fields in com.badlogic.gdx.graphics.g3d.utils.shapebuilders declared as Vector3 Modifier and Type Field Description protected static Vector3BaseShapeBuilder. tmpV0protected static Vector3BaseShapeBuilder. tmpV1protected static Vector3BaseShapeBuilder. tmpV2protected static Vector3BaseShapeBuilder. tmpV3protected static Vector3BaseShapeBuilder. tmpV4protected static Vector3BaseShapeBuilder. tmpV5protected static Vector3BaseShapeBuilder. tmpV6protected static Vector3BaseShapeBuilder. tmpV7Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders that return Vector3 Modifier and Type Method Description protected static Vector3BaseShapeBuilder. obtainV3()Obtain a temporaryVector3object, must be free'd usingBaseShapeBuilder.freeAll().Methods in com.badlogic.gdx.graphics.g3d.utils.shapebuilders with parameters of type Vector3 Modifier and Type Method Description static voidBoxShapeBuilder. build(MeshPartBuilder builder, Vector3 corner000, Vector3 corner010, Vector3 corner100, Vector3 corner110, Vector3 corner001, Vector3 corner011, Vector3 corner101, Vector3 corner111)Add a box.static voidEllipseShapeBuilder. build(MeshPartBuilder builder, float width, float height, float innerWidth, float innerHeight, int divisions, Vector3 center, Vector3 normal)Build an ellipsestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float width, float height, int divisions, Vector3 center, Vector3 normal)Build a ellipsestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float width, float height, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Build a ellipsestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Build a ellipsestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float width, float height, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Build a ellipsestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float radius, int divisions, Vector3 center, Vector3 normal)Build a circlestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float radius, int divisions, Vector3 center, Vector3 normal, float angleFrom, float angleTo)Build a circlestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal)Build a circlestatic voidEllipseShapeBuilder. build(MeshPartBuilder builder, float radius, int divisions, Vector3 center, Vector3 normal, Vector3 tangent, Vector3 binormal, float angleFrom, float angleTo)Build a circlestatic voidPatchShapeBuilder. build(MeshPartBuilder builder, Vector3 corner00, Vector3 corner10, Vector3 corner11, Vector3 corner01, Vector3 normal, int divisionsU, int divisionsV)Build a patch shape. -
Uses of Vector3 in com.badlogic.gdx.graphics.glutils
Methods in com.badlogic.gdx.graphics.glutils with parameters of type Vector3 Modifier and Type Method Description voidShapeRenderer. line(Vector3 v0, Vector3 v1)voidShaderProgram. setUniformf(int location, Vector3 values)voidShaderProgram. setUniformf(java.lang.String name, Vector3 values)Sets the uniform with the given name. -
Uses of Vector3 in com.badlogic.gdx.math
Fields in com.badlogic.gdx.math declared as Vector3 Modifier and Type Field Description protected static Vector3[]Frustum. clipSpacePlanePointsVector3Plane. normalVector3[]Frustum. planePointseight points making up the near and far clipping "rectangles".static Vector3Vector3. Xstatic Vector3Vector3. Ystatic Vector3Vector3. Zstatic Vector3Vector3. ZeroMethods in com.badlogic.gdx.math that return Vector3 Modifier and Type Method Description Vector3Vector3. add(float values)Adds the given value to all three components of the vector.Vector3Vector3. add(float x, float y, float z)Adds the given vector to this componentVector3Vector3. add(Vector3 vector)Vector3Vector3. clamp(float min, float max)Vector3Vector3. cpy()Vector3Vector3. crs(float x, float y, float z)Sets this vector to the cross product between it and the other vector.Vector3Vector3. crs(Vector3 vector)Sets this vector to the cross product between it and the other vector.Vector3Vector3. fromString(java.lang.String v)Sets thisVector3to the value represented by the specified string according to the format oftoString().Vector3Plane. getNormal()Vector3Matrix4. getScale(Vector3 scale)Vector3Matrix4. getTranslation(Vector3 position)Vector3Vector3. interpolate(Vector3 target, float alpha, Interpolation interpolator)Vector3Vector3. lerp(Vector3 target, float alpha)Vector3Vector3. limit(float limit)Vector3Vector3. limit2(float limit2)Vector3Vector3. mul(Matrix3 matrix)Left-multiplies the vector by the given matrix.Vector3Vector3. mul(Matrix4 matrix)Left-multiplies the vector by the given matrix, assuming the fourth (w) component of the vector is 1.Vector3Vector3. mul(Quaternion quat)Multiplies the vector by the givenQuaternion.Vector3Vector3. mul4x3(float[] matrix)Left-multiplies the vector by the given 4x3 column major matrix.Vector3Vector3. mulAdd(Vector3 vec, float scalar)Vector3Vector3. mulAdd(Vector3 vec, Vector3 mulVec)Vector3Vector3. nor()Vector3Vector3. prj(Matrix4 matrix)Multiplies this vector by the given matrix dividing by w, assuming the fourth (w) component of the vector is 1.Vector3Vector3. rot(Matrix4 matrix)Multiplies this vector by the first three columns of the matrix, essentially only applying rotation and scaling.Vector3Vector3. rotate(float degrees, float axisX, float axisY, float axisZ)Rotates this vector by the given angle in degrees around the given axis.Vector3Vector3. rotate(Vector3 axis, float degrees)Rotates this vector by the given angle in degrees around the given axis.Vector3Vector3. rotateRad(float radians, float axisX, float axisY, float axisZ)Rotates this vector by the given angle in radians around the given axis.Vector3Vector3. rotateRad(Vector3 axis, float radians)Rotates this vector by the given angle in radians around the given axis.Vector3Vector3. scl(float scalar)Vector3Vector3. scl(float vx, float vy, float vz)Scales this vector by the given valuesVector3Vector3. scl(Vector3 other)Vector3Vector3. set(float[] values)Sets the components from the array.Vector3Vector3. set(float x, float y, float z)Sets the vector to the given componentsVector3Vector3. set(Vector2 vector, float z)Sets the components of the given vector and z-componentVector3Vector3. set(Vector3 vector)Vector3Vector3. setFromSpherical(float azimuthalAngle, float polarAngle)Sets the components from the given spherical coordinateVector3Vector3. setLength(float len)Vector3Vector3. setLength2(float len2)Vector3Vector3. setToRandomDirection()Vector3Vector3. setZero()Vector3Vector3. slerp(Vector3 target, float alpha)Spherically interpolates between this vector and the target vector by alpha which is in the range [0,1].Vector3Vector3. sub(float value)Subtracts the given value from all components of this vectorVector3Vector3. sub(float x, float y, float z)Subtracts the other vector from this vector.Vector3Vector3. sub(Vector3 a_vec)Vector3Vector3. traMul(Matrix3 matrix)Multiplies the vector by the transpose of the given matrix.Vector3Vector3. traMul(Matrix4 matrix)Multiplies the vector by the transpose of the given matrix, assuming the fourth (w) component of the vector is 1.Vector3Quaternion. transform(Vector3 v)Transforms the given vector using this quaternionVector3Vector3. unrotate(Matrix4 matrix)Multiplies this vector by the transpose of the first three columns of the matrix.Vector3Vector3. untransform(Matrix4 matrix)Translates this vector in the direction opposite to the translation of the matrix and the multiplies this vector by the transpose of the first three columns of the matrix.Methods in com.badlogic.gdx.math with parameters of type Vector3 Modifier and Type Method Description Vector3Vector3. add(Vector3 vector)booleanFrustum. boundsInFrustum(Vector3 center, Vector3 dimensions)Returns whether the given bounding box is in the frustum.Vector3Vector3. crs(Vector3 vector)Sets this vector to the cross product between it and the other vector.floatPlane. distance(Vector3 point)Calculates the shortest signed distance between the plane and the given point.floatVector3. dot(Vector3 vector)floatVector3. dst(Vector3 vector)floatVector3. dst2(Vector3 point)booleanVector3. epsilonEquals(Vector3 other)Compares this vector with the other vector using MathUtils.FLOAT_ROUNDING_ERROR for fuzzy equality testingbooleanVector3. epsilonEquals(Vector3 other, float epsilon)floatQuaternion. getAngleAround(Vector3 axis)Get the angle in degrees of the rotation around the specified axis.floatQuaternion. getAngleAroundRad(Vector3 axis)Get the angle in radians of the rotation around the specified axis.floatQuaternion. getAxisAngle(Vector3 axis)Get the axis angle representation of the rotation in degrees.floatQuaternion. getAxisAngleRad(Vector3 axis)Get the axis-angle representation of the rotation in radians.Vector3Matrix4. getScale(Vector3 scale)voidQuaternion. getSwingTwist(Vector3 axis, Quaternion swing, Quaternion twist)Get the swing rotation and twist rotation for the specified axis.Vector3Matrix4. getTranslation(Vector3 position)booleanVector3. hasOppositeDirection(Vector3 vector)static booleanIntersector. hasOverlap(Vector3[] axes, Vector3[] aVertices, Vector3[] bVertices)Returns whether two geometries (defined as an array of vertices) have at least one point of intersection using SAT (separating axis theorem)booleanVector3. hasSameDirection(Vector3 vector)booleanVector3. idt(Vector3 vector)Returns true if this vector and the vector parameter have identical components.Vector3Vector3. interpolate(Vector3 target, float alpha, Interpolation interpolator)static booleanIntersector. intersectBoundsPlaneFast(Vector3 center, Vector3 halfDimensions, Vector3 normal, float distance)Quick check whether the given bounding box and a plane intersect.static floatIntersector. intersectLinePlane(float x, float y, float z, float x2, float y2, float z2, Plane plane, Vector3 intersection)Intersects a line and a plane.static booleanIntersector. intersectPlanes(Plane a, Plane b, Plane c, Vector3 intersection)Returns true if the threeplanesintersect, setting the point of intersection inintersection, if any.static booleanIntersector. intersectRayBounds(Ray ray, BoundingBox box, Vector3 intersection)Intersects aRayand aBoundingBox, returning the intersection point in intersection.static booleanIntersector. intersectRayBoundsFast(Ray ray, Vector3 center, Vector3 dimensions)Quick check whether the givenRayandBoundingBoxintersect.static booleanIntersector. intersectRayOrientedBounds(Ray ray, BoundingBox bounds, Matrix4 transform, Vector3 intersection)Check whether the givenRayandOrientedBoundingBoxintersect.static booleanIntersector. intersectRayOrientedBounds(Ray ray, OrientedBoundingBox obb, Vector3 intersection)Check whether the givenRayandOrientedBoundingBoxintersect.static booleanIntersector. intersectRayPlane(Ray ray, Plane plane, Vector3 intersection)static booleanIntersector. intersectRaySphere(Ray ray, Vector3 center, float radius, Vector3 intersection)Intersects aRayand a sphere, returning the intersection point in intersection.static booleanIntersector. intersectRayTriangle(Ray ray, Vector3 t1, Vector3 t2, Vector3 t3, Vector3 intersection)Intersect aRayand a triangle, returning the intersection point in intersection.static booleanIntersector. intersectRayTriangles(Ray ray, float[] vertices, short[] indices, int vertexSize, Vector3 intersection)Intersects the given ray with list of triangles.static booleanIntersector. intersectRayTriangles(Ray ray, float[] triangles, Vector3 intersection)Intersects the given ray with list of triangles.static booleanIntersector. intersectRayTriangles(Ray ray, java.util.List<Vector3> triangles, Vector3 intersection)Intersects the given ray with list of triangles.static booleanIntersector. intersectSegmentPlane(Vector3 start, Vector3 end, Plane plane, Vector3 intersection)booleanVector3. isCollinear(Vector3 other)booleanVector3. isCollinear(Vector3 other, float epsilon)booleanVector3. isCollinearOpposite(Vector3 other)booleanVector3. isCollinearOpposite(Vector3 other, float epsilon)booleanPlane. isFrontFacing(Vector3 direction)Returns whether the plane is facing the direction vector.booleanVector3. isOnLine(Vector3 other)booleanVector3. isOnLine(Vector3 other, float epsilon)booleanVector3. isPerpendicular(Vector3 vector)booleanVector3. isPerpendicular(Vector3 vector, float epsilon)static booleanIntersector. isPointInTriangle(Vector3 point, Vector3 t1, Vector3 t2, Vector3 t3)Returns whether the given point is inside the triangle.Vector3Vector3. lerp(Vector3 target, float alpha)Vector3Vector3. mulAdd(Vector3 vec, float scalar)Vector3Vector3. mulAdd(Vector3 vec, Vector3 mulVec)booleanFrustum. pointInFrustum(Vector3 point)Returns whether the point is in the frustum.Matrix4Matrix4. rotate(Vector3 axis, float degrees)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Matrix4Matrix4. rotate(Vector3 v1, Vector3 v2)Postmultiplies this matrix by the rotation between two vectors.Vector3Vector3. rotate(Vector3 axis, float degrees)Rotates this vector by the given angle in degrees around the given axis.Matrix4Matrix4. rotateRad(Vector3 axis, float radians)Postmultiplies this matrix with a (counter-clockwise) rotation matrix.Vector3Vector3. rotateRad(Vector3 axis, float radians)Rotates this vector by the given angle in radians around the given axis.Matrix4Matrix4. rotateTowardDirection(Vector3 direction, Vector3 up)Post-multiplies this matrix by a rotation toward a direction.Matrix4Matrix4. rotateTowardTarget(Vector3 target, Vector3 up)Post-multiplies this matrix by a rotation toward a target.Matrix3Matrix3. scl(Vector3 scale)Scale this matrix using the x and y components of the vector but leave the rest of the matrix alone.Matrix4Matrix4. scl(Vector3 scale)Vector3Vector3. scl(Vector3 other)Matrix4Matrix4. set(Vector3 position, Quaternion orientation)Set this matrix to the specified translation and rotation.Matrix4Matrix4. set(Vector3 position, Quaternion orientation, Vector3 scale)Set this matrix to the specified translation, rotation and scale.Matrix4Matrix4. set(Vector3 xAxis, Vector3 yAxis, Vector3 zAxis, Vector3 pos)Sets the four columns of the matrix which correspond to the x-, y- and z-axis of the vector space this matrix creates as well as the 4th column representing the translation of any point that is multiplied by this matrix.voidPlane. set(Vector3 point, Vector3 normal)Sets the plane to the given point and normal.voidPlane. set(Vector3 point1, Vector3 point2, Vector3 point3)Sets the plane normal and distance to the origin based on the three given points which are considered to be on the plane.QuaternionQuaternion. set(Vector3 axis, float angle)Sets the quaternion components from the given axis and angle around that axis.Vector3Vector3. set(Vector3 vector)Vector4Vector4. set(Vector3 vector, float w)Sets the components of the given vector3 and w-componentQuaternionQuaternion. setFromAxis(Vector3 axis, float degrees)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromAxisRad(Vector3 axis, float radians)Sets the quaternion components from the given axis and angle around that axis.QuaternionQuaternion. setFromCross(Vector3 v1, Vector3 v2)Set this quaternion to the rotation between two vectors.Matrix4Matrix4. setToLookAt(Vector3 direction, Vector3 up)Sets the matrix to a look at matrix with a direction and an up vector.Matrix4Matrix4. setToLookAt(Vector3 position, Vector3 target, Vector3 up)Sets this matrix to a look at matrix with the given position, target and up vector.Matrix3Matrix3. setToRotation(Vector3 axis, float degrees)Matrix3Matrix3. setToRotation(Vector3 axis, float cos, float sin)Matrix4Matrix4. setToRotation(Vector3 axis, float degrees)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToRotation(Vector3 v1, Vector3 v2)Set the matrix to a rotation matrix between two vectors.Matrix4Matrix4. setToRotationRad(Vector3 axis, float radians)Sets the matrix to a rotation matrix around the given axis.Matrix4Matrix4. setToScaling(Vector3 vector)Sets this matrix to a scaling matrixMatrix4Matrix4. setToTranslation(Vector3 vector)Sets this matrix to a translation matrix, overwriting it first by an identity matrix and then setting the 4th column to the translation vector.Matrix4Matrix4. setToTranslationAndScaling(Vector3 translation, Vector3 scaling)Sets this matrix to a translation and scaling matrix by first overwriting it with an identity and then setting the translation vector in the 4th column and the scaling vector in the diagonal.Matrix4Matrix4. setToWorld(Vector3 position, Vector3 forward, Vector3 up)Matrix4Matrix4. setTranslation(Vector3 vector)Sets the 4th column to the translation vector.Vector3Vector3. slerp(Vector3 target, float alpha)Spherically interpolates between this vector and the target vector by alpha which is in the range [0,1].booleanFrustum. sphereInFrustum(Vector3 center, float radius)Returns whether the given sphere is in the frustum.booleanFrustum. sphereInFrustumWithoutNearFar(Vector3 center, float radius)Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane.Vector3Vector3. sub(Vector3 a_vec)Plane.PlaneSidePlane. testPoint(Vector3 point)Returns on which side the given point lies relative to the plane and its normal.Vector3Quaternion. transform(Vector3 v)Transforms the given vector using this quaternionMatrix4Matrix4. translate(Vector3 translation)Postmultiplies this matrix by a translation matrix.Matrix3Matrix3. trn(Vector3 vector)Adds a translational component to the matrix in the 3rd column.Matrix4Matrix4. trn(Vector3 vector)Adds a translational component to the matrix in the 4th column.Method parameters in com.badlogic.gdx.math with type arguments of type Vector3 Modifier and Type Method Description static booleanIntersector. intersectRayTriangles(Ray ray, java.util.List<Vector3> triangles, Vector3 intersection)Intersects the given ray with list of triangles.Constructors in com.badlogic.gdx.math with parameters of type Vector3 Constructor Description Matrix4(Vector3 position, Quaternion rotation, Vector3 scale)Construct a matrix from the given translation, rotation and scale.Octree(Vector3 minimum, Vector3 maximum, int maxDepth, int maxItemsPerNode, Octree.Collider<T> collider)Plane(Vector3 normal, float d)Constructs a new plane based on the normal and distance to the origin.Plane(Vector3 normal, Vector3 point)Constructs a new plane based on the normal and a point on the plane.Plane(Vector3 point1, Vector3 point2, Vector3 point3)Constructs a new plane out of the three given points that are considered to be on the plane.Quaternion(Vector3 axis, float angle)Constructor, sets the quaternion from the given axis vector and the angle around that axis in degrees.Vector3(Vector3 vector)Creates a vector from the given vectorVector4(Vector3 vector, float w)Creates a vector from the given Vector3 and w-component -
Uses of Vector3 in com.badlogic.gdx.math.collision
Fields in com.badlogic.gdx.math.collision declared as Vector3 Modifier and Type Field Description Vector3Segment. athe starting positionVector3Segment. bthe ending positionVector3Sphere. centerthe center of the sphereVector3Ray. directionVector3BoundingBox. maxMaximum vector.Vector3BoundingBox. minMinimum vector.Vector3Ray. originMethods in com.badlogic.gdx.math.collision that return Vector3 Modifier and Type Method Description Vector3BoundingBox. getCenter(Vector3 out)Vector3BoundingBox. getCorner000(Vector3 out)Vector3OrientedBoundingBox. getCorner000(Vector3 out)Vector3BoundingBox. getCorner001(Vector3 out)Vector3OrientedBoundingBox. getCorner001(Vector3 out)Vector3BoundingBox. getCorner010(Vector3 out)Vector3OrientedBoundingBox. getCorner010(Vector3 out)Vector3BoundingBox. getCorner011(Vector3 out)Vector3OrientedBoundingBox. getCorner011(Vector3 out)Vector3BoundingBox. getCorner100(Vector3 out)Vector3OrientedBoundingBox. getCorner100(Vector3 out)Vector3BoundingBox. getCorner101(Vector3 out)Vector3OrientedBoundingBox. getCorner101(Vector3 out)Vector3BoundingBox. getCorner110(Vector3 out)Vector3OrientedBoundingBox. getCorner110(Vector3 out)Vector3BoundingBox. getCorner111(Vector3 out)Vector3OrientedBoundingBox. getCorner111(Vector3 out)Vector3BoundingBox. getDimensions(Vector3 out)Vector3Ray. getEndPoint(Vector3 out, float distance)Returns the endpoint given the distance.Vector3BoundingBox. getMax(Vector3 out)Vector3BoundingBox. getMin(Vector3 out)Vector3[]OrientedBoundingBox. getVertices()Methods in com.badlogic.gdx.math.collision with parameters of type Vector3 Modifier and Type Method Description booleanBoundingBox. contains(Vector3 v)Returns whether the given vector is contained in this bounding box.booleanOrientedBoundingBox. contains(Vector3 v)Returns whether the given vector is contained in this oriented bounding box.BoundingBoxBoundingBox. ext(Vector3 point)Extends the bounding box to incorporate the givenVector3.BoundingBoxBoundingBox. ext(Vector3 center, float radius)Extends this bounding box by the given sphere.Vector3BoundingBox. getCenter(Vector3 out)Vector3BoundingBox. getCorner000(Vector3 out)Vector3OrientedBoundingBox. getCorner000(Vector3 out)Vector3BoundingBox. getCorner001(Vector3 out)Vector3OrientedBoundingBox. getCorner001(Vector3 out)Vector3BoundingBox. getCorner010(Vector3 out)Vector3OrientedBoundingBox. getCorner010(Vector3 out)Vector3BoundingBox. getCorner011(Vector3 out)Vector3OrientedBoundingBox. getCorner011(Vector3 out)Vector3BoundingBox. getCorner100(Vector3 out)Vector3OrientedBoundingBox. getCorner100(Vector3 out)Vector3BoundingBox. getCorner101(Vector3 out)Vector3OrientedBoundingBox. getCorner101(Vector3 out)Vector3BoundingBox. getCorner110(Vector3 out)Vector3OrientedBoundingBox. getCorner110(Vector3 out)Vector3BoundingBox. getCorner111(Vector3 out)Vector3OrientedBoundingBox. getCorner111(Vector3 out)Vector3BoundingBox. getDimensions(Vector3 out)Vector3Ray. getEndPoint(Vector3 out, float distance)Returns the endpoint given the distance.Vector3BoundingBox. getMax(Vector3 out)Vector3BoundingBox. getMin(Vector3 out)BoundingBoxBoundingBox. set(Vector3[] points)Sets the bounding box minimum and maximum vector from the given points.BoundingBoxBoundingBox. set(Vector3 minimum, Vector3 maximum)Sets the given minimum and maximum vector.RayRay. set(Vector3 origin, Vector3 direction)Sets the starting position and the direction of this ray.Method parameters in com.badlogic.gdx.math.collision with type arguments of type Vector3 Modifier and Type Method Description BoundingBoxBoundingBox. set(java.util.List<Vector3> points)Sets the bounding box minimum and maximum vector from the given points.Constructors in com.badlogic.gdx.math.collision with parameters of type Vector3 Constructor Description BoundingBox(Vector3 minimum, Vector3 maximum)Constructs the new bounding box using the given minimum and maximum vector.Ray(Vector3 origin, Vector3 direction)Constructor, sets the starting position of the ray and the direction.Segment(Vector3 a, Vector3 b)Constructs a new Segment from the two points given.Sphere(Vector3 center, float radius)Constructs a sphere with the given center and radius -
Uses of Vector3 in com.badlogic.gdx.utils.viewport
Methods in com.badlogic.gdx.utils.viewport that return Vector3 Modifier and Type Method Description Vector3Viewport. project(Vector3 worldCoords)Transforms the specified world coordinate to screen coordinates.Vector3Viewport. unproject(Vector3 screenCoords)Transforms the specified screen coordinate to world coordinates.Methods in com.badlogic.gdx.utils.viewport with parameters of type Vector3 Modifier and Type Method Description Vector3Viewport. project(Vector3 worldCoords)Transforms the specified world coordinate to screen coordinates.Vector3Viewport. unproject(Vector3 screenCoords)Transforms the specified screen coordinate to world coordinates.
-