cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vctQuaternion.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet
7  Created on: 2003-10-07
8 
9  (C) Copyright 2003-2007 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 */
20 
21 #pragma once
22 #ifndef _vctQuaternion_h
23 #define _vctQuaternion_h
24 
32 
33 
52 template <class _elementType>
53 class vctQuaternion : public vctQuaternionBase<vctFixedSizeVector<_elementType, 4> >
54 {
55 public:
56  /* no need to document, inherit doxygen documentation from base class */
57  enum {SIZE = 4};
58  VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType);
63 
65  inline vctQuaternion():
66  BaseType()
67  {}
68 
76  inline vctQuaternion(const value_type & x,
77  const value_type & y,
78  const value_type & z,
79  const value_type & r):
80  BaseType(x, y, z, r)
81  {}
82 };
83 
84 
85 #endif // _vctQuaternion_h
86 
vctQuaternion(const value_type &x, const value_type &y, const value_type &z, const value_type &r)
Definition: vctQuaternion.h:76
Define a quaternion container.
Definition: vctForwardDeclarations.h:205
cmnTypeTraits< value_type > TypeTraits
Definition: vctQuaternion.h:62
vctQuaternion()
Definition: vctQuaternion.h:65
Declaration of vctQuaternionBase.
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
Implementation of a fixed-size vector using template metaprogramming.
Definition: vctFixedSizeVector.h:52
vctQuaternionBase< ContainerType > BaseType
Definition: vctQuaternion.h:61
vctQuaternion< value_type > ThisType
Definition: vctQuaternion.h:59
vctFixedSizeVector< value_type, SIZE > ContainerType
Definition: vctQuaternion.h:60
Declaration of vctFixedSizeVector.
Definition: vctQuaternion.h:57
Define a quaternion container.
Definition: vctQuaternion.h:53
A collection of useful information about the C++ basic types, represented in a generic programming wa...
Definition: cmnTypeTraits.h:155