cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstVector
vctRandomTransformations.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
Author(s): Anton Deguet
6
Created on: 2007-02-11
7
8
(C) Copyright 2005-2020 Johns Hopkins University (JHU), All Rights Reserved.
9
10
--- begin cisst license - do not edit ---
11
12
This software is provided "as is" under an open source license, with
13
no warranty. The complete license can be found in license.txt and
14
http://www.cisst.org/cisst/license.txt.
15
16
--- end cisst license ---
17
*/
18
19
#pragma once
20
#ifndef _vctRandomTransformations_h
21
#define _vctRandomTransformations_h
22
27
28
#include <
cisstCommon/cmnRandomSequence.h
>
29
#include <
cisstCommon/cmnPortability.h
>
30
31
#include <
cisstVector/vctMatrixRotation3Ref.h
>
32
#include <
cisstVector/vctForwardDeclarations.h
>
33
34
#include <
cisstVector/vctExport.h
>
35
48
template
<
class
_containerType>
49
void
vctRandom
(
vctMatrixRotation3Base<_containerType>
& matrixRotation);
50
51
#ifndef DOXYGEN
52
#ifdef CISST_COMPILER_IS_MSVC
53
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrix<double, 3, 3, VCT_ROW_MAJOR>
> &);
54
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrix<double, 3, 3, VCT_COL_MAJOR>
> &);
55
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrix<float, 3, 3, VCT_ROW_MAJOR>
> &);
56
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrix<float, 3, 3, VCT_ROW_MAJOR>
> &);
57
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrixRef<double, 3, 3, 4, 1>
> &);
58
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrixRef<double, 3, 3, 1, 4>
> &);
59
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrixRef<float, 3, 3, 4, 1>
> &);
60
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation3Base
<
vctFixedSizeMatrixRef<float, 3, 3, 1, 4>
> &);
61
#endif
62
#endif
// DOXYGEN
63
64
65
template
<
class
_containerType>
66
CISST_EXPORT
void
vctRandom
(
vctQuaternionRotation3Base<_containerType>
& quaternionRotation);
67
68
#ifndef DOXYGEN
69
#ifdef CISST_COMPILER_IS_MSVC
70
template
CISST_EXPORT
void
vctRandom
(
vctQuaternionRotation3Base
<
vctFixedSizeVector<double, 4>
> &);
71
template
CISST_EXPORT
void
vctRandom
(
vctQuaternionRotation3Base
<
vctFixedSizeVector<float, 4>
> &);
72
#endif
73
#endif
// DOXYGEN
74
75
76
template
<
class
_elementType>
77
CISST_EXPORT
void
vctRandom
(
vctAxisAngleRotation3<_elementType>
& axisAngleRotation);
78
79
#ifndef DOXYGEN
80
#ifdef CISST_COMPILER_IS_MSVC
81
template
CISST_EXPORT
void
vctRandom
(
vctAxisAngleRotation3<double>
&);
82
template
CISST_EXPORT
void
vctRandom
(
vctAxisAngleRotation3<float>
&);
83
#endif
84
#endif
// DOXYGEN
85
86
87
template
<
class
_containerType>
88
CISST_EXPORT
void
vctRandom
(
vctRodriguezRotation3Base<_containerType>
& rodriguezRotation);
89
90
#ifndef DOXYGEN
91
#ifdef CISST_COMPILER_IS_MSVC
92
template
CISST_EXPORT
void
vctRandom
(
vctRodriguezRotation3Base
<
vctFixedSizeVector<double, 3>
> &);
93
template
CISST_EXPORT
void
vctRandom
(
vctRodriguezRotation3Base
<
vctFixedSizeVector<float, 3>
> &);
94
#endif
95
#endif
// DOXYGEN
96
97
98
template
<vctEulerRotation3Order::OrderType _order>
99
CISST_EXPORT
void
vctRandom
(
vctEulerRotation3<_order>
& eulerRotation);
100
101
#ifndef DOXYGEN
102
#ifdef CISST_COMPILER_IS_MSVC
103
template
CISST_EXPORT
void
vctRandom
(
vctEulerRotation3<vctEulerRotation3Order::ZYZ>
&);
104
template
CISST_EXPORT
void
vctRandom
(
vctEulerRotation3<vctEulerRotation3Order::ZYX>
&);
105
template
CISST_EXPORT
void
vctRandom
(
vctEulerRotation3<vctEulerRotation3Order::ZXZ>
&);
106
template
CISST_EXPORT
void
vctRandom
(
vctEulerRotation3<vctEulerRotation3Order::YZX>
&);
107
#endif
108
#endif
// DOXYGEN
109
110
111
template
<
class
_containerType>
112
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation2Base<_containerType>
& matrixRotation);
113
114
#ifndef DOXYGEN
115
#ifdef CISST_COMPILER_IS_MSVC
116
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation2Base
<
vctFixedSizeMatrix<double, 2, 2>
> &);
117
template
CISST_EXPORT
void
vctRandom
(
vctMatrixRotation2Base
<
vctFixedSizeMatrix<float, 2, 2>
> &);
118
#endif
119
#endif
// DOXYGEN
120
121
CISST_EXPORT
void
vctRandom
(
vctAngleRotation2
& angleRotation);
123
124
#endif
// _vctRandomTransformations_h
vctAngleRotation2
Define a rotation based on an angle for a space of dimension 2.
Definition
vctAngleRotation2.h:45
vctAxisAngleRotation3
Define a rotation based on an axis and an angle for a space of dimension 3.
Definition
vctAxisAngleRotation3.h:93
vctEulerRotation3
Definition
vctEulerRotation3.h:154
vctFixedSizeMatrix
Implementation of a fixed-size matrix using template metaprogramming.
Definition
vctFixedSizeMatrix.h:54
vctFixedSizeMatrixRef
Definition
vctForwardDeclarations.h:110
vctFixedSizeVector
Implementation of a fixed-size vector using template metaprogramming.
Definition
vctFixedSizeVector.h:54
vctMatrixRotation2Base
Define a rotation matrix for a space of dimension 2.
Definition
vctMatrixRotation2Base.h:56
vctMatrixRotation3Base
Define a rotation matrix for a space of dimension 3.
Definition
vctMatrixRotation3Base.h:71
vctQuaternionRotation3Base
Define a rotation quaternion for a space of dimension 3.
Definition
vctQuaternionRotation3Base.h:64
vctRodriguezRotation3Base
Define a rotation based on the rodriguez representation for a space of dimension 3.
Definition
vctRodriguezRotation3Base.h:68
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
cmnPortability.h
Portability across compilers and operating systems tools.
cmnRandomSequence.h
Randomization utilities for general use in CISST applications.
vctRandom
void vctRandom(vctDynamicMatrixBase< _matrixOwnerType, _elementType > &matrix, const typename vctDynamicMatrixBase< _matrixOwnerType, _elementType >::value_type min, const typename vctDynamicMatrixBase< _matrixOwnerType, _elementType >::value_type max)
Definition
vctRandomDynamicMatrix.h:47
vctExport.h
Macros to export the symbols of cisstVector (in a Dll).
vctForwardDeclarations.h
Forward declarations and #define for cisstVector.
vctMatrixRotation3Ref.h
Declaration of vctMatrixRotation3Ref.
Generated by
1.18.0