画一个心形有很多公式可以使用,下面这个公式我认为最完美了:
float x = R * 16 * pow(sin(theta), 3);
float y = R * (13 * cos(theta) - 5*cos(2*theta) - 2*cos(3*theta) - cos(4*theta));
画出来的心形最漂亮,最原始的笛卡尔的心形是个肥心,没这个好看,呵呵。
效果如下:
...
分类:
其他好文 时间:
2014-05-25 22:46:49
阅读次数:
315
Question0Sign in to voteFolks,In my
application, when the user hits "Submit" button, I have to make a Web service
call asynchronously. Here is what I ...
分类:
其他好文 时间:
2014-05-25 22:19:32
阅读次数:
657
You are given two linked lists representing two non-negative numbers. The digits are
stored in reverse order and each of their nodes contain a single digit. Add the two numbers
and return i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
增量备份分为差异备份(differential incremental
backup)和累积备份(cumulative incremental backup),这是两种执行增量备份操作的不同方法。80. You perform
differential incremental level 1 bac...
分类:
其他好文 时间:
2014-05-25 20:03:24
阅读次数:
301
引言数学计算的模拟类题目,往往是要求实现某种计算(比如两数相除),实现的过程中会有所限定,比如不允许乘法等等。这类题目首先要注意计算过程中本身的特殊情况。比如求相除,则必须首先反映过来除数不能为0。其次要记得考虑负数的情况,如果计算范围不单单是整数,还要考虑double的比较方式。最后要注意越界情况...
分类:
其他好文 时间:
2014-05-25 19:10:39
阅读次数:
287
HangoverTime Limit: 1000MSMemory Limit:
10000KTotal Submissions: 99369Accepted: 48162DescriptionHow far can you make a
stack of cards overhang a tabl....
分类:
其他好文 时间:
2014-05-25 18:46:14
阅读次数:
216
Problem DescriptionIn your childhood, do you
crazy for collecting the beautiful cards in the snacks? They said that, for
example, if you collect all t...
分类:
其他好文 时间:
2014-05-25 14:05:37
阅读次数:
214
DescriptionCerror is the mayor of city
HangZhou. As you may know, the traffic system of this city is so terrible, that
there are traffic jams everywhe...
分类:
其他好文 时间:
2014-05-25 11:40:26
阅读次数:
393
1.JS include :DOM BOM ECMA2.Browser 分别独立实现dom &
JSas if two isolated islands3.JS操作DOMfrom the island to the other one4.DOM性能The
bridges between island...
分类:
其他好文 时间:
2014-05-25 11:28:12
阅读次数:
246
Problem Description
Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.
In the field of Cyberground, the ...
分类:
其他好文 时间:
2014-05-25 11:13:53
阅读次数:
245