jjdh API

jjdh.java.math
Class Point3D

java.lang.Object
  extended by jjdh.java.math.Point3D
Direct Known Subclasses:
Vector3D

public class Point3D
extends Object

Author:
Dennis Heidsiek

Field Summary
protected  float[] data
           
static Comparator<Point3D> Distance
           
 
Constructor Summary
Point3D()
           
Point3D(float x, float y, float z)
           
Point3D(Point3D v)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean equals(Point3D other)
           
 boolean equals(Point3D other, float epsilon)
           
 float[] getData()
           
protected static float getDistance(Point3D v0, Point3D v1)
           
 float getX()
           
 float getY()
           
 float getZ()
           
 int hashCode()
          Calculates a hash code value for this Vertex3D.
protected static int toSloppyIntBits(float f)
          It's totally Crazy, but reality: (-0f) !
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Distance

public static final Comparator<Point3D> Distance

data

protected final float[] data
Constructor Detail

Point3D

public Point3D()

Point3D

public Point3D(float x,
               float y,
               float z)

Point3D

public Point3D(Point3D v)
Method Detail

getData

public float[] getData()

getX

public float getX()

getY

public float getY()

getZ

public float getZ()

toString

public String toString()
Overrides:
toString in class Object

getDistance

protected static final float getDistance(Point3D v0,
                                         Point3D v1)

equals

public boolean equals(Point3D other,
                      float epsilon)

equals

public boolean equals(Point3D other)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toSloppyIntBits

protected static final int toSloppyIntBits(float f)
It's totally Crazy, but reality: (-0f) != (0f)


hashCode

public int hashCode()
Calculates a hash code value for this Vertex3D.

Overrides:
hashCode in class Object
Returns:
the hash code value for this Vertex3D.

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.