public class ASTVect
extends java.lang.Object
Copyright (c) 2018
Constructor and Description |
---|
ASTVect()
Constructors for creating vector objects.
|
ASTVect(double x,
double y,
double z)
Constructors for creating vector objects.
|
Modifier and Type | Method and Description |
---|---|
double |
len()
Get the vector's length.
|
void |
setVect(double x,
double y,
double z)
Set the components of a vector.
|
static double |
vectLen(double x,
double y,
double z)
Calculate the length/magnitude of a vector
|
double |
x()
Get the x value of the vector.
|
double |
y()
Get the y value of the vector.
|
double |
z()
Get the z value of the vector.
|
public ASTVect()
public ASTVect(double x, double y, double z)
x
- x value for the vectory
- y value for the vectorz
- z value for the vectorpublic double x()
public double y()
public double z()
public double len()
public void setVect(double x, double y, double z)
x
- x value to sety
- y value to setz
- z value to setpublic static double vectLen(double x, double y, double z)
x
- vector's x valuey
- vector's y valuez
- vector's z value