Class dnx.geom.Point3
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.geom.Point3

java.lang.Object
   |
   +----dnx.geom.Point3

public class Point3
extends Object
implements Cloneable, Copyable
Points for 3D graphics.

Variable Index

 o x
 o y
 o z

Constructor Index

 o Point3()
Create a vector initialized to zero.
 o Point3(float, float, float)
 o Point3(Point3)
Create a new vector which is a copy of v.
 o Point3(Vector3)

Method Index

 o add(Vector3)
Add a vector to a point.
 o clear()
 o clone()
 o copy(Copyable)
 o distanceTo(Point3)
Return the distance to another point
 o equals(Object)
 o hashCode()
 o setValue(float, float, float)
 o subtract(Vector3)
Subtract a vector from a point.
 o toString()
 o transform(Matrix4)
Multiply the point by the matrix m
 o transform(Matrix4, Point3)

Variables

 o x
  public float x
 o y
  public float y
 o z
  public float z

Constructors

 o Point3
  public Point3()
Create a vector initialized to zero.
 o Point3
  public Point3(float x,
                float y,
                float z)
 o Point3
  public Point3(Point3 p)
Create a new vector which is a copy of v.
 o Point3
  public Point3(Vector3 v)

Methods

 o clear
  public void clear()
 o setValue
  public void setValue(float x,
                       float y,
                       float z)
 o distanceTo
  public float distanceTo(Point3 p)
Return the distance to another point
 o add
  public final void add(Vector3 v)
Add a vector to a point.
 o subtract
  public final void subtract(Vector3 v)
Subtract a vector from a point.
 o transform
  public void transform(Matrix4 m)
Multiply the point by the matrix m
 o transform
  public void transform(Matrix4 m,
                        Point3 p)
 o equals
  public boolean equals(Object obj)
Overrides:
equals in class Object
 o hashCode
  public int hashCode()
Overrides:
hashCode in class Object
 o copy
  public void copy(Copyable c)
 o clone
  public Object clone()
Overrides:
clone in class Object
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index