Drake
Drake C++ Documentation
SinCos Struct Reference

Detailed Description

Represents a pair of Variables corresponding to sin(q) and cos(q).

#include <drake/common/symbolic/trigonometric_polynomial.h>

Public Member Functions

 SinCos (Variable _s, Variable _c, SinCosSubstitutionType _type=SinCosSubstitutionType::kAngle)
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 SinCos (const SinCos &)=default
 
SinCosoperator= (const SinCos &)=default
 
 SinCos (SinCos &&)=default
 
SinCosoperator= (SinCos &&)=default
 

Public Attributes

Variable s {}
 sin variable. More...
 
Variable c {}
 cos variable. More...
 
SinCosSubstitutionType type {}
 Allows a user to specify non-default substitutions, such as using half-angle formulas. More...
 

Constructor & Destructor Documentation

◆ SinCos() [1/3]

SinCos ( const SinCos )
default

◆ SinCos() [2/3]

SinCos ( SinCos &&  )
default

◆ SinCos() [3/3]

Member Function Documentation

◆ operator=() [1/2]

SinCos& operator= ( const SinCos )
default

◆ operator=() [2/2]

SinCos& operator= ( SinCos &&  )
default

Member Data Documentation

◆ c

Variable c {}

cos variable.

◆ s

Variable s {}

sin variable.

◆ type

Allows a user to specify non-default substitutions, such as using half-angle formulas.


The documentation for this struct was generated from the following file: