CoordinateRotator

public class CoordinateRotator implements ICoordinateRandomizer

Class CoordinateRotator. Provides coordinaterotator functionality for the Hytale server.

java.lang.Object > CoordinateRotator

Field Summary

sinYaw

final double sinYaw

Field sinYaw.

cosYaw

final double cosYaw

Field cosYaw.

sinPitch

final double sinPitch

Field sinPitch.

cosPitch

final double cosPitch

Field cosPitch.

px1

final double px1

Field px1.

px2

final double px2

Field px2.

px3

final double px3

Field px3.

py1

final double py1

Field py1.

py2

final double py2

Field py2.

py3

final double py3

Field py3.

pz1

final double pz1

Field pz1.

pz2

final double pz2

Field pz2.

pz3

final double pz3

Field pz3.

yx1

final double yx1

Field yx1.

yx2

final double yx2

Field yx2.

yx3

final double yx3

Field yx3.

yy1

final double yy1

Field yy1.

yy2

final double yy2

Field yy2.

yy3

final double yy3

Field yy3.

yz1

final double yz1

Field yz1.

yz2

final double yz2

Field yz2.

yz3

final double yz3

Field yz3.

Method Detail

CoordinateRotator

public public CoordinateRotator (final double pitch, final double yaw)

Method CoordinateRotator.

Parameters:
final double pitch
final double yaw

rotateX

public double rotateX (final double x, final double y)

Method rotateX.

Parameters:
final double x
final double y

rotateY

public double rotateY (final double x, final double y)

Method rotateY.

Parameters:
final double x
final double y

rotateZ

public double rotateZ (final double x, final double y, final double z)

Method rotateZ.

Parameters:
final double x
final double y
final double z

randomDoubleX

public double randomDoubleX (final int seed, final double x, final double y)

Method randomDoubleX.

Parameters:
final int seed
final double x
final double y

randomDoubleY

public double randomDoubleY (final int seed, final double x, final double y)

Method randomDoubleY.

Parameters:
final int seed
final double x
final double y

randomDoubleZ

public double randomDoubleZ (final int seed, final double x, final double y, final double z)

Method randomDoubleZ.

Parameters:
final int seed
final double x
final double y
final double z

toString

public String toString ()

Method toString.

createRotationMatrix

static double[] createRotationMatrix (final double pitch, final double yaw)

Method createRotationMatrix.

Parameters:
final double pitch
final double yaw

dot

static double dot (final double x1, final double y1, final double z1, final double x2, final double y2, final double z2)

Method dot.

Parameters:
final double x1
final double y1
final double z1
final double x2
final double y2
final double z2