cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstVector
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
29
30
#include <
cisstVector/vctQuaternionBase.h
>
31
#include <
cisstVector/vctFixedSizeVector.h
>
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);
59
typedef
vctQuaternion<value_type>
ThisType
;
60
typedef
vctFixedSizeVector<value_type, SIZE>
ContainerType
;
61
typedef
vctQuaternionBase<ContainerType>
BaseType
;
62
typedef
cmnTypeTraits<value_type>
TypeTraits
;
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
cmnTypeTraits
A collection of useful information about the C++ basic types, represented in a generic programming wa...
Definition
cmnTypeTraits.h:155
value_type
vctFixedSizeVector
Implementation of a fixed-size vector using template metaprogramming.
Definition
vctFixedSizeVector.h:54
vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >::vctQuaternionBase
vctQuaternionBase(void)
Definition
vctQuaternionBase.h:70
vctQuaternion::ThisType
vctQuaternion< value_type > ThisType
Definition
vctQuaternion.h:59
vctQuaternion::vctQuaternion
vctQuaternion()
Definition
vctQuaternion.h:65
vctQuaternion< value_type >::SIZE
@ SIZE
Definition
vctQuaternion.h:57
vctQuaternion< value_type >::BaseType
vctQuaternionBase< ContainerType > BaseType
Definition
vctQuaternion.h:61
vctQuaternion::vctQuaternion
vctQuaternion(const value_type &x, const value_type &y, const value_type &z, const value_type &r)
Definition
vctQuaternion.h:76
vctQuaternion< value_type >::TypeTraits
cmnTypeTraits< value_type > TypeTraits
Definition
vctQuaternion.h:62
vctQuaternion::VCT_CONTAINER_TRAITS_TYPEDEFS
VCT_CONTAINER_TRAITS_TYPEDEFS(_elementType)
vctQuaternion< value_type >::ContainerType
vctFixedSizeVector< value_type, SIZE > ContainerType
Definition
vctQuaternion.h:60
vctFixedSizeVector.h
Declaration of vctFixedSizeVector.
vctQuaternionBase.h
Declaration of vctQuaternionBase.
Generated by
1.18.0