zoukankan
html css js c++ java
轨迹(locus)
轨迹是一个物体移动的 时间-位置 函数
locus(t) = (x,y)
通过给定时间t可以得到一个坐标(x,y),由于得到的是二维的坐标,这个轨迹称为二维轨迹
如果得到坐标是三维的,那么这个轨迹是一个三维的轨迹。
同样的,如果得到的结果是一个多维的数据,那么这个轨迹可以描述更多的信息。
比如,除了三维坐标之外,还可以描述物体的方向,旋转角度,甚至缩放,透明度等等。
这样,把轨迹描述为一个模板
template
<
class
Point
>
class
Locus
{
public
:
struct
Node
{
int
m_time;
Point m_p;
bool
operator
<
(
int
time)
const
{
return
m_time
<
time;
}
}
;
void
loadData(
const
char
*
data);
virtual
int
getInterval(
int
time, Point
&
result)
=
0
;
protected
:
Locus(LocusType type);
const
LocusType mc_type;
int
m_time;
::std::vector
<
Node
>
m_data;
}
;
具体的轨迹,例如:直线,B样条...都继承这个模板类。重载getInterval函数,得到不同的映射关系。
查看全文
相关阅读:
eclipse集群tomcat
安装mysql 5.7版本遇到问题及解决办法
ElasticSearch自定义分词器
LeetCode之Add Two Numbers
定位CPU高问题三把斧
jinfo用法说明
Code Cache相关知识总结
表达式
Elasticsearch 在分布式系统中深度分页问题
红黑树的特性
原文地址:https://www.cnblogs.com/kaikai/p/73865.html
最新文章
商品搜索引擎--商品推荐
IDEA13 项目配置
Jersey构建Restful风格的Webserivces(三)
Jersey构建restful风格的WebSerivices(二)
Jersey构建Restful风格的webservices
mysql免安装版 安装配置 (转)
收集的一些资源地址
HighCharts使用
oracle分页
常用正则表达式(实用)
热门文章
java使用properties文件
运输层
Python常用的内建模块
Python正则表达式
网络层
数据链路层
Python之进程与线程
物理层
计算机网络概述
Python之IO编程
Copyright © 2011-2022 走看看