Class PointF3
java.lang.Object
com.badlogic.gdx.math.Vector3
com.github.tommyettinger.gand.points.PointF3
- All Implemented Interfaces:
com.badlogic.gdx.math.Vector<com.badlogic.gdx.math.Vector3>
,com.badlogic.gdx.utils.Json.Serializable
,com.github.tommyettinger.crux.Point3<PointF3>
,com.github.tommyettinger.crux.PointN<PointF3>
,Serializable
public class PointF3
extends com.badlogic.gdx.math.Vector3
implements com.github.tommyettinger.crux.Point3<PointF3>, com.badlogic.gdx.utils.Json.Serializable
The same as
Vector3
, just implementing Point3
and Json.Serializable
.- See Also:
-
Field Summary
Fields inherited from class com.badlogic.gdx.math.Vector3
x, X, y, Y, z, Z, Zero
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncpy()
float
float
boolean
Returns true if this type of point usesfloat
ordouble
for its components, or false otherwise.fromString
(String v) Sets thisPointF3
to the value represented by the specified string according to the format oftoString()
.int
hashCode()
void
read
(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData) set
(float x, float y, float z) setZero()
toString()
Converts thisPointF3
to a string in the format(x,y,z)
.void
write
(com.badlogic.gdx.utils.Json json) float
x()
x
(float next) float
y()
y
(float next) float
z()
z
(float next) Methods inherited from class com.badlogic.gdx.math.Vector3
add, add, add, clamp, crs, crs, dot, dot, dot, dst, dst, dst, dst2, dst2, dst2, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, hasOppositeDirection, hasSameDirection, idt, interpolate, isCollinear, isCollinear, isCollinearOpposite, isCollinearOpposite, isOnLine, isOnLine, isPerpendicular, isPerpendicular, isUnit, isUnit, isZero, isZero, len, len, len2, len2, lerp, limit, limit2, mul, mul, mul, mul4x3, mulAdd, mulAdd, nor, prj, rot, rotate, rotate, rotateRad, rotateRad, scl, scl, scl, set, set, set, setFromSpherical, setLength, setLength2, setToRandomDirection, slerp, sub, sub, sub, traMul, traMul, unrotate, untransform
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.tommyettinger.crux.Point3
rank
Methods inherited from interface com.github.tommyettinger.crux.PointN
isUnit, isUnit, isZero, isZero, len, len2, mutable
-
Constructor Details
-
PointF3
public PointF3() -
PointF3
public PointF3(float x, float y, float z) -
PointF3
public PointF3(com.badlogic.gdx.math.Vector3 v) -
PointF3
public PointF3(com.badlogic.gdx.math.GridPoint3 v) -
PointF3
-
PointF3
public PointF3(com.github.tommyettinger.crux.Point3<? extends com.github.tommyettinger.crux.Point3<?>> v)
-
-
Method Details
-
floatingPoint
public boolean floatingPoint()Returns true if this type of point usesfloat
ordouble
for its components, or false otherwise. This always returns true.- Specified by:
floatingPoint
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
- Returns:
- true
-
cpy
- Specified by:
cpy
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
- Specified by:
cpy
in interfacecom.badlogic.gdx.math.Vector<com.badlogic.gdx.math.Vector3>
- Overrides:
cpy
in classcom.badlogic.gdx.math.Vector3
-
set
- Specified by:
set
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
sub
- Specified by:
sub
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
add
- Specified by:
add
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
scl
- Specified by:
scl
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
dst
- Specified by:
dst
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
dst2
- Specified by:
dst2
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
-
setZero
- Specified by:
setZero
in interfacecom.github.tommyettinger.crux.PointN<PointF3>
- Specified by:
setZero
in interfacecom.badlogic.gdx.math.Vector<com.badlogic.gdx.math.Vector3>
- Overrides:
setZero
in classcom.badlogic.gdx.math.Vector3
-
x
public float x()- Specified by:
x
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
x
- Specified by:
x
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
y
public float y()- Specified by:
y
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
y
- Specified by:
y
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
z
public float z()- Specified by:
z
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
z
- Specified by:
z
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
-
set
- Specified by:
set
in interfacecom.github.tommyettinger.crux.Point3<PointF3>
- Overrides:
set
in classcom.badlogic.gdx.math.Vector3
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.badlogic.gdx.math.Vector3
-
write
public void write(com.badlogic.gdx.utils.Json json) - Specified by:
write
in interfacecom.badlogic.gdx.utils.Json.Serializable
-
read
public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData) - Specified by:
read
in interfacecom.badlogic.gdx.utils.Json.Serializable
-
toString
Converts thisPointF3
to a string in the format(x,y,z)
.- Overrides:
toString
in classcom.badlogic.gdx.math.Vector3
- Returns:
- a string representation of this object.
-
fromString
Sets thisPointF3
to the value represented by the specified string according to the format oftoString()
.- Overrides:
fromString
in classcom.badlogic.gdx.math.Vector3
- Parameters:
v
- the string.- Returns:
- this vector for chaining
-