Class Vec4f
java.lang.Object
edu.nps.moves.legacy.math.Vec4f
EXECUTIVE SUMMARY
Module Name: Vec4f.java
Description: Definition of the Vec4f class
Author: Kent A. Watsen, http://www.mbay.net/~watsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
float
static float
void
get
(float[] vec) void
get
(float[] v0, float[] v1, float[] v2, float[] v3) float
get
(int index) void
float
length()
float
void
makeNull()
void
negate()
void
void
void
void
print()
void
scale
(float s) void
void
set
(float[] vec) void
set
(float v0, float v1, float v2, float v3) void
set
(int index, float val) void
void
void
void
void
-
Constructor Details
-
Vec4f
public Vec4f() -
Vec4f
public Vec4f(float v0, float v1, float v2, float v3) -
Vec4f
public Vec4f(float[] vec) -
Vec4f
-
-
Method Details
-
print
public void print() -
set
public void set(float v0, float v1, float v2, float v3) -
get
public void get(float[] v0, float[] v1, float[] v2, float[] v3) -
set
public void set(int index, float val) -
get
public float get(int index) -
set
public void set(float[] vec) -
get
public void get(float[] vec) -
set
-
get
-
makeNull
public void makeNull() -
negate
public void negate() -
negate
-
add
-
add
-
sub
-
sub
-
scale
public void scale(float s) -
scale
-
length
public float length() -
length_sqr
public float length_sqr() -
normalize
public void normalize() -
normalize
-
dot
-
dot
-
xform
-
xform
-