mathematik
Class Vector4f
java.lang.Object
mathematik.Vector4f
- All Implemented Interfaces:
- java.io.Serializable, Vectorf
public class Vector4f
- extends java.lang.Object
- implements java.io.Serializable, Vectorf
- See Also:
- Serialized Form
|
Field Summary |
float |
w
|
float |
x
|
float |
y
|
float |
z
|
|
Constructor Summary |
Vector4f()
|
Vector4f(double[] theVector)
|
Vector4f(double theX,
double theY)
|
Vector4f(double theX,
double theY,
double theZ)
|
Vector4f(double theX,
double theY,
double theZ,
double theW)
|
Vector4f(float[] theVector)
|
Vector4f(float theX,
float theY)
|
Vector4f(float theX,
float theY,
float theZ)
|
Vector4f(float theX,
float theY,
float theZ,
float theW)
|
Vector4f(Vector2f theVector)
|
Vector4f(Vector3f theVector)
|
Vector4f(Vector4f theVector)
|
|
Method Summary |
void |
add(Vector4f theVector)
|
void |
add(Vector4f theVectorA,
Vector4f theVectorB)
|
boolean |
almost(Vector4f theVector)
|
float |
dot(Vector4f theVector)
|
boolean |
equals(Vector4f theVector)
|
boolean |
isNaN()
|
float |
length()
|
float |
lengthSquared()
|
void |
normalize()
|
void |
normalize(Vector4f theVector)
|
void |
scale(float theScalar)
|
void |
scale(float theScalar,
Vector4f theVector)
|
void |
set(double[] theVector)
|
void |
set(double theX,
double theY)
|
void |
set(double theX,
double theY,
double theZ)
|
void |
set(double theX,
double theY,
double theZ,
double theW)
|
void |
set(float[] theVector)
|
void |
set(float theX,
float theY)
|
void |
set(float theX,
float theY,
float theZ)
|
void |
set(float theX,
float theY,
float theZ,
float theW)
|
void |
set(Vector2f theVector)
|
void |
set(Vector3f theVector)
|
void |
set(Vector4f theVector)
|
void |
sub(Vector4f theVector)
|
void |
sub(Vector4f theVectorA,
Vector4f theVectorB)
|
float[] |
toArray()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
w
public float w
x
public float x
y
public float y
z
public float z
Vector4f
public Vector4f()
Vector4f
public Vector4f(float theX,
float theY,
float theZ,
float theW)
Vector4f
public Vector4f(double theX,
double theY,
double theZ,
double theW)
Vector4f
public Vector4f(float theX,
float theY,
float theZ)
Vector4f
public Vector4f(double theX,
double theY,
double theZ)
Vector4f
public Vector4f(float theX,
float theY)
Vector4f
public Vector4f(double theX,
double theY)
Vector4f
public Vector4f(float[] theVector)
Vector4f
public Vector4f(double[] theVector)
Vector4f
public Vector4f(Vector4f theVector)
Vector4f
public Vector4f(Vector3f theVector)
Vector4f
public Vector4f(Vector2f theVector)
set
public final void set(float theX,
float theY,
float theZ,
float theW)
set
public final void set(double theX,
double theY,
double theZ,
double theW)
set
public final void set(float theX,
float theY,
float theZ)
set
public final void set(double theX,
double theY,
double theZ)
set
public final void set(float theX,
float theY)
set
public final void set(double theX,
double theY)
set
public final void set(float[] theVector)
set
public final void set(double[] theVector)
set
public final void set(Vector4f theVector)
set
public final void set(Vector3f theVector)
set
public final void set(Vector2f theVector)
add
public final void add(Vector4f theVectorA,
Vector4f theVectorB)
add
public final void add(Vector4f theVector)
sub
public final void sub(Vector4f theVectorA,
Vector4f theVectorB)
sub
public final void sub(Vector4f theVector)
scale
public final void scale(float theScalar,
Vector4f theVector)
scale
public final void scale(float theScalar)
lengthSquared
public final float lengthSquared()
length
public final float length()
dot
public final float dot(Vector4f theVector)
normalize
public void normalize(Vector4f theVector)
normalize
public final void normalize()
toArray
public final float[] toArray()
isNaN
public final boolean isNaN()
equals
public final boolean equals(Vector4f theVector)
almost
public final boolean almost(Vector4f theVector)
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Object
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009