public class Vector2l
Class Vector2l. Provides vector2l functionality for the Hytale server.
java.lang.Object > Vector2l
Field Summary
x
public
long
x
Field x.
y
public
long
y
Field y.
x0
final
long
x0
Field x0.
y0
final
long
y0
Field y0.
dx
final
long
dx
Field dx.
dy
final
long
dy
Field dy.
length
final
double
length
Field length.
vector2l
final
Vector2l
vector2l
Field vector2l.
Method Detail
Vector2l
public
public
Vector2l
()
Method Vector2l.
getX
public
long
getX
()
Method getX.
setX
public
void
setX
(final long x)
Method setX.
- Parameters:
final longx
getY
public
long
getY
()
Method getY.
setY
public
void
setY
(final long y)
Method setY.
- Parameters:
final longy
length
public
double
length
()
Method length.
squaredLength
public
long
squaredLength
()
Method squaredLength.
setLength
Method setLength.
- Parameters:
final longnewLen
clampLength
Method clampLength.
- Parameters:
final longmaxLength
equals
public
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
hashCode
public
int
hashCode
()
Method hashCode.
toString
public
String
toString
()
Method toString.