Ignition Physics

API Reference

2.3.0
FromPolicy< PolicyT > Struct Template Reference

This struct is used to conveniently convert from a policy to a geometric type. Example usage: More...

#include <Geometry.hh>

Public Types

enum  { Dim = PolicyT::Dim }
 
using Scalar = typename PolicyT::Scalar
 
template<template< typename, std::size_t > class Type>
using Use = Type< Scalar, Dim >
 

Detailed Description

template<typename PolicyT>
struct ignition::physics::FromPolicy< PolicyT >

This struct is used to conveniently convert from a policy to a geometric type. Example usage:

using AngularVector = FromPolicy<FeaturePolicy3d>::To<AngularVector>;

Member Typedef Documentation

◆ Scalar

using Scalar = typename PolicyT::Scalar

◆ Use

using Use = Type<Scalar, Dim>

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Dim 

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