|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.server.math.IntVector3
public class IntVector3
this object is not thread safe
Field Summary | |
---|---|
static float |
epsilon
|
static IntVector3 |
UnitZ
|
static IntVector3 |
Zero
|
Constructor Summary | |
---|---|
IntVector3()
|
|
IntVector3(int x,
int y,
int z)
|
|
IntVector3(IntVector3 other)
|
Method Summary | |
---|---|
IntVector3 |
add(int x,
int y,
int z)
|
IntVector3 |
add(IntVector3 other)
|
static IntVector3 |
add(IntVector3 p1,
IntVector3 p2)
|
IntVector3 |
add(Point other)
|
void |
assign(IntVector3 source)
|
java.lang.Object |
clone()
|
IntVector3 |
cloneAOVector()
|
static boolean |
counterClockwisePoints(IntVector3 v0,
IntVector3 v1,
IntVector3 v2)
|
static IntVector3 |
cross(IntVector3 u,
IntVector3 v)
|
static int |
distanceTo(IntVector3 p1,
IntVector3 p2)
returns distance from p1 to p2 on the XZ plane |
static int |
distanceToSquared(IntVector3 p1,
IntVector3 p2)
returns the square of the distance from p1 to p2 on the XZ plane |
int |
dotProduct(IntVector3 v)
|
boolean |
equals(java.lang.Object obj)
|
Quaternion |
getRotationTo(IntVector3 destination)
Gets the shortest arc quaternion to rotate this vector to the destination vector. |
int |
getX()
|
int |
getY()
|
int |
getZ()
|
boolean |
isZero()
|
int |
length()
|
int |
lengthXZ()
|
static void |
main(java.lang.String[] args)
|
IntVector3 |
minus(IntVector3 other)
Returns the result of the subtraction of the other vector from this vector. |
IntVector3 |
multiply(int factor)
|
IntVector3 |
negate()
|
IntVector3 |
normalize()
|
IntVector3 |
plus(IntVector3 other)
Returns the result of the addition of this vector and the other vector. |
void |
readExternal(java.io.ObjectInput in)
|
IntVector3 |
scale(int s)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
setZ(int z)
|
IntVector3 |
sub(int x,
int y,
int z)
|
IntVector3 |
sub(IntVector3 other)
|
IntVector3 |
sub(Point other)
|
IntVector3 |
times(int factor)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final IntVector3 UnitZ
public static final IntVector3 Zero
public static float epsilon
Constructor Detail |
---|
public IntVector3()
public IntVector3(int x, int y, int z)
public IntVector3(IntVector3 other)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public IntVector3 cloneAOVector()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void assign(IntVector3 source)
public static int distanceTo(IntVector3 p1, IntVector3 p2)
public static int distanceToSquared(IntVector3 p1, IntVector3 p2)
public static IntVector3 add(IntVector3 p1, IntVector3 p2)
public boolean isZero()
public IntVector3 normalize()
public IntVector3 add(IntVector3 other)
public IntVector3 add(Point other)
public IntVector3 add(int x, int y, int z)
public IntVector3 sub(IntVector3 other)
public IntVector3 sub(Point other)
public IntVector3 sub(int x, int y, int z)
public IntVector3 multiply(int factor)
public IntVector3 plus(IntVector3 other)
other
-
public IntVector3 minus(IntVector3 other)
other
-
public IntVector3 times(int factor)
public IntVector3 negate()
public int length()
public int lengthXZ()
public int dotProduct(IntVector3 v)
public IntVector3 scale(int s)
public Quaternion getRotationTo(IntVector3 destination)
public java.lang.String toString()
toString
in class java.lang.Object
public int getX()
public int getY()
public int getZ()
public void setX(int x)
public void setY(int y)
public void setZ(int z)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public static IntVector3 cross(IntVector3 u, IntVector3 v)
public static boolean counterClockwisePoints(IntVector3 v0, IntVector3 v1, IntVector3 v2)
public static void main(java.lang.String[] args)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |