![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Algorithm
jebe7282
Fond of Computer Programming
展开
-
判断两线段是否相交
转自:http://www.cnblogs.com/dxp498688071/archive/2011/3/2.html几何题做的很少,以至于一个很简单的题目写了很久若是判断直线和线段是否有交点,把on_segment去掉就可以了 判断两线段是否相交原创 2011-09-21 10:36:52 · 1050 阅读 · 0 评论 -
动画曲线 EaseIn | EaseOut |EaseInOut 数学模型分析
#define pow2(x) ((x)*(x))#define pow3(x) ((x)*(x)*(x))// assuming :// t is a value between 0 and 1// b is an offset// c is the heightpublic double easeIn (double t, double b, double c) {转载 2012-04-28 18:42:45 · 16750 阅读 · 0 评论 -
Java 实现多字节移位操作
////算法很简单,就是每移一个字节,保留移位溢出的BIT 位,保存为一个字节以备和下一个字节进行组合。public static void main(String[] args) { byte [] data = Hex.fromString("00E8080000000065289BBAEF2EC78CCD0F13571AD01BAE68000001BBB00818"); byte原创 2012-04-18 10:07:00 · 2705 阅读 · 0 评论 -
算法小技巧【取模的技巧】
个人笔记,有点毛,能看懂就看,呵呵。 写一个方法 , 实现循环效果 不用if语句:int i = 0;// 1- 6 的循环。int fun( int max ){ static int i = 0; i = i%max ; i++; return i;}int main(){ fun(6);}// 传统写法:1- 6 的循环。int原创 2012-10-23 13:03:01 · 1177 阅读 · 0 评论 -
各种资料整理
计算几何算法概览 http://dev.gameres.com/Program/Abstract/Geometry.htmexpressionParser http://code.google.com/p/expressionparser/ [eval for c++ version]/http://stackoverflow.com/questions/4071456/opensouce原创 2012-10-23 18:31:17 · 632 阅读 · 0 评论 -
文字 流体模拟
http://jandan.net/2013/11/30/fluid-simulation.html原创 2015-03-19 13:55:11 · 491 阅读 · 0 评论