cisst-saw
Loading...
Searching...
No Matches
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
14This software is provided "as is" under an open source license, with
15no warranty. The complete license can be found in license.txt and
16http://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
29
32
33
52template <class _elementType>
53class vctQuaternion : public vctQuaternionBase<vctFixedSizeVector<_elementType, 4> >
54{
55public:
56 /* no need to document, inherit doxygen documentation from base class */
57 enum {SIZE = 4};
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
A collection of useful information about the C++ basic types, represented in a generic programming wa...
Definition cmnTypeTraits.h:155
Implementation of a fixed-size vector using template metaprogramming.
Definition vctFixedSizeVector.h:54
vctQuaternionBase(void)
Definition vctQuaternionBase.h:70
vctQuaternion< value_type > ThisType
Definition vctQuaternion.h:59
vctQuaternion()
Definition vctQuaternion.h:65
@ SIZE
Definition vctQuaternion.h:57
vctQuaternionBase< ContainerType > BaseType
Definition vctQuaternion.h:61
vctQuaternion(const value_type &x, const value_type &y, const value_type &z, const value_type &r)
Definition vctQuaternion.h:76
cmnTypeTraits< value_type > TypeTraits
Definition vctQuaternion.h:62
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
vctFixedSizeVector< value_type, SIZE > ContainerType
Definition vctQuaternion.h:60
Declaration of vctFixedSizeVector.
Declaration of vctQuaternionBase.