public class Matrix4d
Class Matrix4d. Provides matrix4d functionality for the Hytale server.
java.lang.Object > Matrix4d
Field Summary
m
Field m.
n
Field n.
j
Field j.
n2
Field n2.
k
Field k.
n3
Field n3.
x
Field x.
y
Field y.
z
Field z.
w
Field w.
invW
Field invW.
a00
Field a00.
a2
Field a2.
a3
Field a3.
a4
Field a4.
a5
Field a5.
a6
Field a6.
a7
Field a7.
a8
Field a8.
a9
Field a9.
a10
Field a10.
a11
Field a11.
a12
Field a12.
a13
Field a13.
a14
Field a14.
a15
Field a15.
a16
Field a16.
b00
Field b00.
b2
Field b2.
b3
Field b3.
b4
Field b4.
b5
Field b5.
b6
Field b6.
b7
Field b7.
b8
Field b8.
b9
Field b9.
b10
Field b10.
b11
Field b11.
b12
Field b12.
b13
Field b13.
b14
Field b14.
b15
Field b15.
b16
Field b16.
src0
Field src0.
src2
Field src2.
src3
Field src3.
src4
Field src4.
src5
Field src5.
src6
Field src6.
src7
Field src7.
src8
Field src8.
src9
Field src9.
src10
Field src10.
src11
Field src11.
src12
Field src12.
src13
Field src13.
src14
Field src14.
src15
Field src15.
src16
Field src16.
atmp0
Field atmp0.
atmp2
Field atmp2.
atmp3
Field atmp3.
atmp4
Field atmp4.
atmp5
Field atmp5.
atmp6
Field atmp6.
atmp7
Field atmp7.
atmp8
Field atmp8.
atmp9
Field atmp9.
atmp10
Field atmp10.
atmp11
Field atmp11.
atmp12
Field atmp12.
dst0
Field dst0.
dst2
Field dst2.
dst3
Field dst3.
dst4
Field dst4.
dst5
Field dst5.
dst6
Field dst6.
dst7
Field dst7.
dst8
Field dst8.
btmp0
Field btmp0.
btmp2
Field btmp2.
btmp3
Field btmp3.
btmp4
Field btmp4.
btmp5
Field btmp5.
btmp6
Field btmp6.
btmp7
Field btmp7.
btmp8
Field btmp8.
btmp9
Field btmp9.
btmp10
Field btmp10.
btmp11
Field btmp11.
btmp12
Field btmp12.
dst9
Field dst9.
dst10
Field dst10.
dst11
Field dst11.
dst12
Field dst12.
dst13
Field dst13.
dst14
Field dst14.
dst15
Field dst15.
dst16
Field dst16.
det
Field det.
invdet
Field invdet.
r_width
Field r_width.
r_height
Field r_height.
r_depth
Field r_depth.
i
Field i.
n4
Field n4.
n5
Field n5.
l
Field l.
n6
Field n6.
m2
Field m2.
n7
Field n7.
n8
Field n8.
m3
Field m3.
n9
Field n9.
m4
Field m4.
n10
Field n10.
m5
Field m5.
n11
Field n11.
n12
Field n12.
f
Field f.
r
Field r.
dirX
Field dirX.
dirY
Field dirY.
dirZ
Field dirZ.
rlf
Field rlf.
rls
Field rls.
ux
Field ux.
uy
Field uy.
uz
Field uz.
sin
Field sin.
cos
Field cos.
cx
Field cx.
sx
Field sx.
cy
Field cy.
sy
Field sy.
cz
Field cz.
sz
Field sz.
cxsy
Field cxsy.
sxsy
Field sxsy.
data
Field data.
Method Detail
Matrix4d
public
Matrix4d
()
Method Matrix4d.
get
double
get
(final int idx)
Method get.
- Parameters:
final intidx
set
Method set.
- Parameters:
final intidxfinal doubleval
add
Method add.
- Parameters:
final intidxfinal doubleval
scale
Method scale.
- Parameters:
final doublexfinal doubleyfinal doublez
invert
boolean
invert
()
Method invert.
projectionOrtho
Matrix4d
projectionOrtho
(final double left, final double right, final double bottom, final double top, final double near, final double far)
Method projectionOrtho.
- Parameters:
final doubleleftfinal doublerightfinal doublebottomfinal doubletopfinal doublenearfinal doublefar
projectionFrustum
Matrix4d
projectionFrustum
(final double left, final double right, final double bottom, final double top, final double near, final double far)
Method projectionFrustum.
- Parameters:
final doubleleftfinal doublerightfinal doublebottomfinal doubletopfinal doublenearfinal doublefar
projectionCone
Matrix4d
projectionCone
(final double fov, final double aspect, final double near, final double far)
Method projectionCone.
- Parameters:
final doublefovfinal doubleaspectfinal doublenearfinal doublefar
viewTarget
Matrix4d
viewTarget
(final double eyeX, final double eyeY, final double eyeZ, final double centerX, final double centerY, final double centerZ, final double upX, final double upY, final double upZ)
Method viewTarget.
- Parameters:
final doubleeyeXfinal doubleeyeYfinal doubleeyeZfinal doublecenterXfinal doublecenterYfinal doublecenterZfinal doubleupXfinal doubleupYfinal doubleupZ
viewDirection
Matrix4d
viewDirection
(final double eyeX, final double eyeY, final double eyeZ, double dirX, double dirY, double dirZ, final double upX, final double upY, final double upZ)
Method viewDirection.
- Parameters:
final doubleeyeXfinal doubleeyeYfinal doubleeyeZdoubledirXdoubledirYdoubledirZfinal doubleupXfinal doubleupYfinal doubleupZ
rotateAxis
Matrix4d
rotateAxis
(final double a, final double x, final double y, final double z, @Nonnull final Matrix4d tmp)
Method rotateAxis.
- Parameters:
final doubleafinal doublexfinal doubleyfinal doublez@Nonnull final Matrix4dtmp
setRotateAxis
Method setRotateAxis.
- Parameters:
final doubleafinal doublexfinal doubleyfinal doublez
rotateEuler
Matrix4d
rotateEuler
(final double x, final double y, final double z, @Nonnull final Matrix4d tmp)
Method rotateEuler.
- Parameters:
final doublexfinal doubleyfinal doublez@Nonnull final Matrix4dtmp
setRotateEuler
Method setRotateEuler.
- Parameters:
final doublexfinal doubleyfinal doublez
getData
double[]
getData
()
Method getData.
asFloatData
float[]
asFloatData
()
Method asFloatData.
toString
String
toString
()
Method toString.
idx
int
idx
(final int col, final int row)
Method idx.
- Parameters:
final intcolfinal introw