码迷,mamicode.com
首页 >  
搜索关键字:rotate    ( 1470个结果
【LeetCode】Rotate List 解题报告
【题目】 Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 【解析】 题意:把链表循环右移k个结点。 不是...
分类:其他好文   时间:2014-12-17 18:30:18    阅读次数:148
490 - Rotating Sentences
Rotating SentencesIn ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the in...
分类:其他好文   时间:2014-12-16 22:23:20    阅读次数:211
Android 画图之Matrix(二)
上一篇Android画图之 Matrix(一) 讲了一下 Matrix的原理和运算方法,涉及到高等数学,有点难以理解。还好 Android 里面提供了对Matrix操作的一系 列方便的接口。 Matrix的操作,总共分为 translate(平移),rotate(旋转),scale(缩放)和s...
分类:移动开发   时间:2014-12-16 16:52:51    阅读次数:138
DIV旋转的测试代码
.rat0 { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); } .rat1 { -webkit-transform: rotate(20deg); -moz-transform: rotate(20deg); } .rat2 { -webkit-transform: rotate(-20deg); -...
分类:其他好文   时间:2014-12-16 15:09:06    阅读次数:163
android开发之Animations的使用(二)
android开发之Animations的使用(二) 本博文主要讲述的是android开发中的animation动画效果的使用,和上一篇博文不同的是,此次四种动画效果,主要使用的是xml文件实现的,提高了代码的可重用性和可维护性. 使用的基本步骤如下: 1、首先在res文件夹下创建一个anim文件夹  2、在此文件夹中新建四种动画效果的xml文件(scale.xml,rotate.xml,...
分类:移动开发   时间:2014-12-15 17:21:11    阅读次数:255
POJ 3449 Geometric Shapes --计算几何,线段相交
题意: 给一些多边形或线段,输出与每一个多边形或线段的有哪一些多边形或线段。解法: 想法不难,直接暴力将所有的图形处理成线段,然后暴力枚举,相交就加入其vector就行了。主要是代码有点麻烦,一步一步来吧。还有收集了一个线段旋转的函数。Vector Rotate(Point P,Vector A,d...
分类:其他好文   时间:2014-12-14 22:38:16    阅读次数:346
Android animator Animation动画效果详解
Android的animation由四种类型组成XML中 alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果JavaCode中 AlphaAnimation渐变透明度动画效果ScaleAnimation渐变尺寸伸缩动画...
分类:移动开发   时间:2014-12-12 18:59:28    阅读次数:203
坐标旋转变换公式的推导(转)
翻译自: http://www.metro-hs.ac.jp/rs/sinohara/zahyou_rot/zahyou_rotate.htm翻译: 汤 永康出处: http://blog.csdn.net/tangyongkang转贴请注明出处1 围绕原点的旋转如下图, 在2维坐标上,有一点p(x...
分类:其他好文   时间:2014-12-11 15:36:47    阅读次数:150
[LeetCode] Rotate List 单项链表旋转
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.Hide ...
分类:其他好文   时间:2014-12-11 13:56:55    阅读次数:151
canvas的translate、scale、rotate等方法
1.translate(x,y):平移,将画布的坐标原点向左右方向移动x,向上下方向移动y.canvas的默认位置是在(0,0). 例子:画布原点假如落在(1,1),那么translate(10,10)就是在原点(1,1)基础上分别在x轴、y轴移动10,则原点变为(11,11)。2.scale(x,...
分类:其他好文   时间:2014-12-11 13:43:03    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!