org.jmol.g3d
Class Xyzd
java.lang.Object
org.jmol.g3d.Xyzd
public class Xyzd
- extends java.lang.Object
stores x,y,z plus diameter in a long
maybe it was a silly idea. By packing I hoped to gain some
function calling effeciency. In addition, I hoped to test for
clipping by testing x, y, and z all at the same time.
in hindsight it probably was not worth the trouble
- Author:
- Miguel, miguel@jmol.org
Constructor Summary |
Xyzd()
|
Method Summary |
static int |
getD(long xyzd)
|
static int |
getX(long xyzd)
|
static long |
getXyzd(int x,
int y,
int z,
int d)
|
static int |
getY(long xyzd)
|
static int |
getZ(long xyzd)
|
static boolean |
isAnyGreater(long xyzd,
long xyzdMax)
|
static boolean |
isAnyLess(long xyzd,
long xyzdMin)
|
static boolean |
isAnyNegative(long xyzd)
|
static void |
printXyzd(long xyzd)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GB
public static final int GB
- See Also:
- Constant Field Values
OV
public static final int OV
- See Also:
- Constant Field Values
ZO
public static final int ZO
- See Also:
- Constant Field Values
MIN
public static final int MIN
- See Also:
- Constant Field Values
MAX
public static final int MAX
- See Also:
- Constant Field Values
MASK
public static final int MASK
- See Also:
- Constant Field Values
GBZO
public static final int GBZO
- See Also:
- Constant Field Values
LGB
public static final long LGB
- See Also:
- Constant Field Values
LOV
public static final long LOV
- See Also:
- Constant Field Values
LMASK
public static final long LMASK
- See Also:
- Constant Field Values
LZO
public static final long LZO
- See Also:
- Constant Field Values
ZO4
public static final long ZO4
- See Also:
- Constant Field Values
GB4
public static final long GB4
- See Also:
- Constant Field Values
GBZO4
public static final long GBZO4
- See Also:
- Constant Field Values
OV4
public static final long OV4
- See Also:
- Constant Field Values
MASK4
public static final long MASK4
- See Also:
- Constant Field Values
ZO3
public static final long ZO3
- See Also:
- Constant Field Values
OV3
public static final long OV3
- See Also:
- Constant Field Values
MASK3
public static final long MASK3
- See Also:
- Constant Field Values
NaN
public static final long NaN
- See Also:
- Constant Field Values
Xyzd
public Xyzd()
getXyzd
public static final long getXyzd(int x,
int y,
int z,
int d)
getX
public static final int getX(long xyzd)
getY
public static final int getY(long xyzd)
getZ
public static final int getZ(long xyzd)
getD
public static final int getD(long xyzd)
isAnyNegative
public static final boolean isAnyNegative(long xyzd)
isAnyLess
public static final boolean isAnyLess(long xyzd,
long xyzdMin)
isAnyGreater
public static final boolean isAnyGreater(long xyzd,
long xyzdMax)
printXyzd
public static final void printXyzd(long xyzd)