Blender  V3.3
Public Member Functions | Static Public Member Functions | Friends | List of all members
KDL::Rotation2 Class Reference

#include <frames.hpp>

Public Member Functions

 Rotation2 ()
 Default constructor does NOT initialise to Zero(). More...
 
 Rotation2 (double angle_rad)
 
 Rotation2 (double ca, double sa)
 
Rotation2operator= (const Rotation2 &arg)
 
Vector2 operator* (const Vector2 &v) const
 
double operator() (int i, int j) const
 Access to elements 0..1,0..1, bounds are checked when NDEBUG is not set. More...
 
void SetInverse ()
 
Rotation2 Inverse () const
 
Vector2 Inverse (const Vector2 &v) const
 
void SetIdentity ()
 
void SetRot (double angle)
 The SetRot.. functions set the value of *this to the appropriate rotation matrix. More...
 
double GetRot () const
 Gets the angle (in radians) More...
 

Static Public Member Functions

static Rotation2 Identity ()
 
static Rotation2 Rot (double angle)
 The Rot... static functions give the value of the appropriate rotation matrix bac. More...
 

Friends

Rotation2 operator* (const Rotation2 &lhs, const Rotation2 &rhs)
 
bool Equal (const Rotation2 &a, const Rotation2 &b, double eps)
 

Detailed Description

A 2D Rotation class, for conventions see Rotation. For further documentation of the methods see Rotation class.

Definition at line 989 of file frames.hpp.

Constructor & Destructor Documentation

◆ Rotation2() [1/3]

KDL::Rotation2::Rotation2 ( )
inline

Default constructor does NOT initialise to Zero().

c,s represent cos(angle), sin(angle), this also represents first col. of rot matrix from outside, this class behaves as if it would store the complete 2x2 matrix.

Definition at line 996 of file frames.hpp.

Referenced by Identity(), Inverse(), and Rot().

◆ Rotation2() [2/3]

KDL::Rotation2::Rotation2 ( double  angle_rad)
inlineexplicit

Definition at line 998 of file frames.hpp.

◆ Rotation2() [3/3]

KDL::Rotation2::Rotation2 ( double  ca,
double  sa 
)
inline

Definition at line 1000 of file frames.hpp.

Member Function Documentation

◆ GetRot()

IMETHOD double Rotation2::GetRot ( ) const
inline

Gets the angle (in radians)

Definition at line 940 of file frames.inl.

References KDL::atan2().

◆ Identity()

IMETHOD Rotation2 Rotation2::Identity ( )
inlinestatic

Definition at line 922 of file frames.inl.

References Rotation2().

Referenced by KDL::Frame2::Frame2().

◆ Inverse() [1/2]

IMETHOD Rotation2 Rotation2::Inverse ( ) const
inline

Definition at line 914 of file frames.inl.

References Rotation2().

Referenced by KDL::Frame2::Inverse().

◆ Inverse() [2/2]

IMETHOD Vector2 Rotation2::Inverse ( const Vector2 v) const
inline

Definition at line 918 of file frames.inl.

References v.

◆ operator()()

IMETHOD double Rotation2::operator() ( int  i,
int  j 
) const
inline

Access to elements 0..1,0..1, bounds are checked when NDEBUG is not set.

Definition at line 896 of file frames.inl.

References FRAMES_CHECKI.

◆ operator*()

IMETHOD Vector2 Rotation2::operator* ( const Vector2 v) const
inline

Definition at line 892 of file frames.inl.

References v.

◆ operator=()

IMETHOD Rotation2 & Rotation2::operator= ( const Rotation2 arg)
inline

Definition at line 887 of file frames.inl.

◆ Rot()

IMETHOD Rotation2 Rotation2::Rot ( double  angle)
inlinestatic

The Rot... static functions give the value of the appropriate rotation matrix bac.

Definition at line 936 of file frames.inl.

References angle(), KDL::cos(), Rotation2(), and KDL::sin().

◆ SetIdentity()

IMETHOD void Rotation2::SetIdentity ( )
inline

Definition at line 926 of file frames.inl.

Referenced by KDL::Frame2::SetIdentity().

◆ SetInverse()

IMETHOD void Rotation2::SetInverse ( )
inline

Definition at line 910 of file frames.inl.

Referenced by KDL::Frame2::SetInverse().

◆ SetRot()

IMETHOD void Rotation2::SetRot ( double  angle)
inline

The SetRot.. functions set the value of *this to the appropriate rotation matrix.

Definition at line 932 of file frames.inl.

References angle(), KDL::cos(), and KDL::sin().

Friends And Related Function Documentation

◆ Equal

bool Equal ( const Rotation2 a,
const Rotation2 b,
double  eps 
)
friend

do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval

◆ operator*

Rotation2 operator* ( const Rotation2 lhs,
const Rotation2 rhs 
)
friend

The documentation for this class was generated from the following files: