24 Vector3D( StkFloat x = 0.0, StkFloat y = 0.0, StkFloat z = 0.0 ) {
setXYZ( x, y, z ); };
27 StkFloat
getX(
void ) {
return X_; };
30 StkFloat
getY(
void ) {
return Y_; };
33 StkFloat
getZ(
void ) {
return Z_; };
39 void setXYZ( StkFloat x, StkFloat y, StkFloat z ) { X_ = x; Y_ = y; Z_ = z; };
42 void setX( StkFloat x ) { X_ = x; };
45 void setY( StkFloat y ) { Y_ = y; };
48 void setZ( StkFloat z ) { Z_ = z; };
STK base class.
Definition: Stk.h:144
STK 3D vector class.
Definition: Vector3D.h:20
Vector3D(StkFloat x=0.0, StkFloat y=0.0, StkFloat z=0.0)
Default constructor taking optional initial X, Y, and Z values.
Definition: Vector3D.h:24
StkFloat getLength(void)
Calculate the vector length.
Definition: Vector3D.h:56
void setXYZ(StkFloat x, StkFloat y, StkFloat z)
Set the X, Y, and Z values simultaniously.
Definition: Vector3D.h:39
void setZ(StkFloat z)
Set the Z value.
Definition: Vector3D.h:48
void setY(StkFloat y)
Set the Y value.
Definition: Vector3D.h:45
void setX(StkFloat x)
Set the X value.
Definition: Vector3D.h:42
StkFloat getX(void)
Get the current X value.
Definition: Vector3D.h:27
StkFloat getZ(void)
Get the current Z value.
Definition: Vector3D.h:33
StkFloat getY(void)
Get the current Y value.
Definition: Vector3D.h:30
The STK namespace.
Definition: ADSR.h:8