|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base3d.worldview.object.Location
cz.cuni.amis.pogamut.defcon.base3d.worldview.object.DefConLocation
public class DefConLocation
Checks and corrects coordinates for the ingame locations and provides useful methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.base3d.worldview.object.Location |
|---|
cz.cuni.amis.pogamut.base3d.worldview.object.Location.PropertyEditor |
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.base3d.worldview.object.Location |
|---|
DISTANCE_ZERO, locationPattern, NONE, x, y, z, ZERO |
| Constructor Summary | |
|---|---|
DefConLocation()
|
|
DefConLocation(double[] d)
|
|
DefConLocation(double x,
double y)
|
|
DefConLocation(float[] f)
|
|
DefConLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
|
|
| Method Summary | |
|---|---|
DefConLocation |
add(cz.cuni.amis.pogamut.base3d.worldview.object.Location l)
Retrieves sum of this location and given location. |
protected static double |
correctX(double x,
double y)
|
double |
getDistance(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
|
double |
getDistance2D(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
|
double |
getDistanceSquare(cz.cuni.amis.pogamut.base3d.worldview.object.Location l)
Calculates the square of the distance between this and given location. |
DefConLocation |
getNormalized()
|
DefConLocation |
invert()
Calculates inverse Location |
protected static double |
mathModulus(double a,
double b)
|
DefConLocation |
scale(double d)
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
sub(DefConLocation l)
Retrieves sum of this location and given location. |
static cz.cuni.amis.pogamut.base3d.worldview.object.Location |
sub(DefConLocation l1,
DefConLocation l2)
|
| Methods inherited from class cz.cuni.amis.pogamut.base3d.worldview.object.Location |
|---|
add, add, add, addX, addXYZ, addY, addZ, asPoint3d, asPoint3D, asVector3d, clone, cross, dot, dot2D, equal, equal, equals, equals, getAverage, getDistance, getDistance2D, getDistanceL1, getDistanceL1, getDistanceLinf, getDistanceLinf, getDistancePlane, getDistancePlane, getDistanceSquare, getDistanceZ, getLength, getLocation, getPoint3d, getQuatLikeRotationSeq, getRotation, getX, getY, getZ, hashCode, interpolate, interpolate, mul, rotateXY, rotateXZ, rotateYZ, scalar, scaleX, scaleY, scaleZ, setX, setY, setZ, sub, sub, sub, sub, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefConLocation()
public DefConLocation(double x,
double y)
public DefConLocation(float[] f)
public DefConLocation(double[] d)
public DefConLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
| Method Detail |
|---|
public double getDistance2D(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
getDistance2D in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationpublic double getDistance(cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
getDistance in class cz.cuni.amis.pogamut.base3d.worldview.object.Location
public static cz.cuni.amis.pogamut.base3d.worldview.object.Location sub(DefConLocation l1,
DefConLocation l2)
protected static double correctX(double x,
double y)
protected static final double mathModulus(double a,
double b)
public DefConLocation scale(double d)
scale in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationpublic DefConLocation add(cz.cuni.amis.pogamut.base3d.worldview.object.Location l)
add in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationl - Location to be added to this location.
public cz.cuni.amis.pogamut.base3d.worldview.object.Location sub(DefConLocation l)
l - Location to be added to this location.
public DefConLocation getNormalized()
getNormalized in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationpublic DefConLocation invert()
invert in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationpublic double getDistanceSquare(cz.cuni.amis.pogamut.base3d.worldview.object.Location l)
getDistanceSquare in class cz.cuni.amis.pogamut.base3d.worldview.object.Locationl - Location to be calculated the distance to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||