当前位置: 首页>>代码示例>>C++>>正文


C++ point_type::get_matrix方法代码示例

本文整理汇总了C++中point_type::get_matrix方法的典型用法代码示例。如果您正苦于以下问题:C++ point_type::get_matrix方法的具体用法?C++ point_type::get_matrix怎么用?C++ point_type::get_matrix使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在point_type的用法示例。


在下文中一共展示了point_type::get_matrix方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: move_position_toward

 /**
  * Computes the covariance matrix which is the linear interpolation between two matrices, by a fraction.
  * \param a The first covariance matrix.
  * \param fraction The scalar fraction at which the evaluate the linear interpolation.
  * \param b The second covariance matrix.
  * \return The interpolated covariance matrix.
  */
 point_type move_position_toward(const point_type& a, double fraction, const point_type& b) const {
   return point_type(matrix_type(value_type(1.0 - fraction) * a.get_matrix() + value_type(fraction) * b.get_matrix()));
 };
开发者ID:ahmadyan,项目名称:ReaK,代码行数:10,代码来源:covar_topology.hpp

示例2: M

      point_difference_type(const point_type& aSrc, 
			    const point_type& aDst) :
                            M(aSrc.get_matrix() - aDst.get_matrix()) { };
开发者ID:ahmadyan,项目名称:ReaK,代码行数:3,代码来源:covar_topology.hpp

示例3: adjust

 /**
  * Adds a given covariance matrix difference to a given covariance matrix.
  * \param a A covariance matrix.
  * \param delta A covariance matrix difference to add to a.
  * \return The adjusted covariance matrix.
  */
 point_type adjust(const point_type& a, const point_difference_type& delta) const {
   return point_type(matrix_type( a.get_matrix() + delta.M ));
 };
开发者ID:ahmadyan,项目名称:ReaK,代码行数:9,代码来源:covar_topology.hpp


注:本文中的point_type::get_matrix方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。