common/inc/Vector4d.h
changeset 0 c316ab048e9d
equal deleted inserted replaced
-1:000000000000 0:c316ab048e9d
       
     1 /*
       
     2  * Name        : Vector4d.h
       
     3  * Description : 
       
     4  * Project     : This file is part of OpenMAR, an Open Mobile Augmented Reality browser
       
     5  * Website     : http://OpenMAR.org
       
     6  *
       
     7  * Copyright (c) 2010 David Caabeiro
       
     8  *
       
     9  * All rights reserved. This program and the accompanying materials are made available 
       
    10  * under the terms of the Eclipse Public License v1.0 which accompanies this 
       
    11  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
       
    12  *
       
    13  */
       
    14 
       
    15 #ifndef VECTOR4D_H_
       
    16 #define VECTOR4D_H_
       
    17 
       
    18 #include "Scalar.h"
       
    19 
       
    20 /**
       
    21  * @brief Provides needed 4d-vector functionality and operations
       
    22  */
       
    23 class Vector4d
       
    24 {
       
    25 public:
       
    26     Vector4d(Scalar x = 0, Scalar y = 0, Scalar z = 0, Scalar w = 0);
       
    27 
       
    28 //private:
       
    29     Scalar mX;
       
    30     Scalar mY;
       
    31     Scalar mZ;
       
    32     Scalar mW;
       
    33 };
       
    34 
       
    35 inline Vector4d::Vector4d(Scalar x, Scalar y, Scalar z, Scalar w)
       
    36     : mX(x), mY(y), mZ(z), mW(w)
       
    37 {}
       
    38 
       
    39 #endif