public final class AVector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
x
publicly accessible float
|
float |
y
publicly accessible float
|
float |
z
publicly accessible float
|
Constructor and Description |
---|
AVector()
Default Constructor
|
AVector(AVector v1)
Copy constructor
|
AVector(float x,
float y,
float z)
Parameterized constructor
|
Modifier and Type | Method and Description |
---|---|
AVector |
cross(AVector v) |
(package private) static float |
dot(AVector v1,
AVector v2) |
(package private) static AVector |
mult(AVector v,
float scalar) |
AVector |
normalize()
Normalize this vector (and sensibly return it)
|
(package private) static AVector |
sub(AVector v1,
AVector v2) |
public float x
public float y
public float z
public AVector()
public AVector(float x, float y, float z)
x
- y
- z
- public AVector(AVector v1)
v1
- public AVector normalize()