|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPoint3f
edu.jhu.ece.iacl.jist.structures.geom.PT
public class PT
Created by IntelliJ IDEA. User: bennett Date: Nov 20, 2005 Time: 9:21:15 AM To change this template use Options | File Templates. ************************************ Magnetic Resonance in Medicine Final Project Released: December 1, 2005 class PT Represent a 3-tuple. For use as a point, vector, etc. Copyright (C) 2005 Bennett Landman, bennett@bme.jhu.edu
| Constructor Summary | |
|---|---|
PT()
Instantiates a new pT. |
|
PT(double x0,
double y0,
double z0)
Instantiates a new pT. |
|
PT(float x0,
float y0,
float z0)
Instantiates a new pT. |
|
| Method Summary | |
|---|---|
PT |
cross(PT b)
Cross. |
float |
dot(PT b)
Dot. |
boolean |
equals(PT pt)
Equals. |
double |
length()
Length. |
PT |
minus(PT b)
Minus. |
PT |
plus(PT b)
Plus. |
PT |
times(float t)
Times. |
java.lang.String |
toString()
|
PT |
vectorProject(PT p)
Project this point onto the input point Computes [dot(this,pt)/(length(pt)^2)]pt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PT()
public PT(float x0,
float y0,
float z0)
x0 - the x0y0 - the y0z0 - the z0
public PT(double x0,
double y0,
double z0)
x0 - the x0y0 - the y0z0 - the z0| Method Detail |
|---|
public java.lang.String toString()
public boolean equals(PT pt)
pt - the pt
public PT minus(PT b)
b - the b
public PT plus(PT b)
b - the b
public PT cross(PT b)
b - the b
public PT times(float t)
t - the t
public float dot(PT b)
b - the b
public double length()
public PT vectorProject(PT p)
p - The point to be projected onto
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||