Drake

## Detailed Description

A "rule" (weights and quadrature points) for computing quadrature over triangular domains.

#include <drake/multibody/triangle_quadrature/triangle_quadrature_rule.h>

## Public Member Functions

int order () const
Returns the order of this rule. More...

const std::vector< Vector2< double > > & quadrature_points () const
Returns the vector of quadrature points. More...

const std::vector< double > & weights () const
Returns the vector of weights. More...

Does not allow copy, move, or assignment

## Protected Member Functions

virtual int do_order () const =0
Derived classes shall return the order (>= 1) of this rule. More...

virtual const std::vector< Vector2< double > > & do_quadrature_points () const =0
Derived classes shall return the vector of quadrature points. More...

virtual const std::vector< double > & do_weights () const =0
Derived classes shall return the vector of weights. More...

delete

delete

default

virtual

## ◆ do_order()

 virtual int do_order ( ) const
protectedpure virtual

Derived classes shall return the order (>= 1) of this rule.

 virtual const std::vector >& do_quadrature_points ( ) const
protectedpure virtual

Derived classes shall return the vector of quadrature points.

Each of these Vector2 objects represents the barycentric coordinates of a triangle (the third barycentric coordinate is implicit: it is the difference between unity and the sum of the other two coordinates).

## ◆ do_weights()

 virtual const std::vector& do_weights ( ) const
protectedpure virtual

Derived classes shall return the vector of weights.

The sum of all weights must equal 1.0.

delete

delete

## ◆ order()

 int order ( ) const

Returns the order of this rule.

 const std::vector >& quadrature_points ( ) const

Returns the vector of quadrature points.

These are returned as the first two barycentric coordinates b0 b1; the third is just b2 = 1 - b0 - b1. Each of these has a corresponding weight returned by weights().

## ◆ weights()

 const std::vector& weights ( ) const

Returns the vector of weights.

These sum to 1 and there is one weight for each point returned by quadrature_points().

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