Home Information Classes Download Usage Mail List Requirements Links Tutorial

# Vector3D.h

    00001 /***************************************************/
    00009 /***************************************************/
    00010
    00011 #if !defined(__VECTOR3D_H)
    00012 #define __VECTOR3D_H
    00013
    00014 class Vector3D {
    00015
    00016 public:
    00018   Vector3D(double initX=0.0, double initY=0.0, double initZ=0.0);
    00019
    00021   ~Vector3D();
    00022
    00024   double getX();
    00025
    00027   double getY();
    00028
    00030   double getZ();
    00031
    00033   double getLength();
    00034
    00036   void setXYZ(double anX, double aY, double aZ);
    00037
    00039   void setX(double aval);
    00040
    00042   void setY(double aval);
    00043
    00045   void setZ(double aval);
    00046
    00047 protected:
    00048   double myX;
    00049   double myY;
    00050   double myZ;
    00051 };
    00052
    00053 #endif

The Synthesis ToolKit in C++ (STK)
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.