|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object | +--Vector4
Implementation of a 4-element vector suited for use with Matrix4x4
| Constructor Summary | |
Vector4()
Create a default 4-element vector (all elements set to 0.0). |
|
Vector4(double v1,
double v2,
double v3,
double v4)
Create a 4-element vector with the specified values. |
|
Vector4(Vector4 vector4)
Construct a 4-element vector as a copy of the specified vector. |
|
| Method Summary | |
boolean |
equals(Object object)
Check if this 4-element vector equals the specified object. |
double |
getElement(int i)
Return the i'th element of this vector. |
void |
set(double v1,
double v2,
double v3,
double v4)
Set the elements of this vector. |
void |
set(Vector4 vector)
Set the elements of this vector according to the specified vector. |
void |
setElement(int i,
double value)
Set the i'th element of this vector. |
String |
toString()
Create a string representation of this vector. |
| Methods inherited from class Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Vector4()
public Vector4(double v1,
double v2,
double v3,
double v4)
v1 - 1st element.v2 - 2nd element.v3 - 3rd element.v4 - 4th elementpublic Vector4(Vector4 vector4)
vector4 - | Method Detail |
public void set(double v1,
double v2,
double v3,
double v4)
v1 - 1st element.v2 - 2nd element.v3 - 3rd element.v4 - 4th elementpublic void set(Vector4 vector)
vector - Vector to copy.public boolean equals(Object object)
equals in class Objectpublic double getElement(int i)
i - Index of element to get (first is 0).
public void setElement(int i,
double value)
i - Index of element to set (first is 0).public String toString()
toString in class Object
|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||