自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 Unity绘制模型的内切长方体

using UnityEngine;using System.Collections;public class BoundUtil : MonoBehaviour{ private Vector3 min = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue); private Vector3 max =

2016-09-28 23:40:47 850

原创 As3 通过绘制多张位图合并成一个超大的位图

该算法将裁剪区域放大到最接近输出尺寸的大小,并且将形成的图像居中处理。核心算法/** * 绘制一个大尺寸可视对象 * @param image 需要绘制的对象 * @param rect 对象绘制区域 * @param outWidth 输出图像的宽度 * @param outHeight 输出图像的高度

2016-09-08 14:43:06 1145

转载 图形学、压缩算法等等等等等

http://www.csie.ntnu.edu.tw/~u91029/index.html

2016-04-22 14:16:37 293

原创 排序算法五:桶排序

static void BucketSort(int[] array){ int max = 0; for(int i = 0;i<array.Length;i++) { if(max < array[i]) { max = array[i]; } } int[] tempArray = new int[max+1]; for (int i = 0; i < arr

2015-10-25 23:12:43 308

原创 排序算法四:选择排序

static void SelectionSort(int[] array){ for (int i = 0; i < array.Length-1; i++) { int maxIndex = i; for(int j = i+1;j<array.Length;j++) { if(array[maxIndex] < array[j]) { maxIndex

2015-10-25 22:48:43 274

原创 排序算法三:二分插入排序

static void HalfSort(int[] array){ for (int i = 1; i < array.Length; i++) { int temp = array[i];//temp为插入的值 int l = 0; int r = i - 1; int m = i; while (l <= r) { m = l + (r - l) / 2;

2015-10-25 22:43:28 327

原创 排序算法二:直接插入排序

static void InsertSort(int[] array){ for(int i = 1;i<array.Length;i++) { int index = 0;//index为将要插入的位置 while (index < i) { int temp = array[i];//temp为插入的值 if (array[index] < temp) {

2015-10-25 21:34:40 272

原创 排序算法一:冒泡排序

static void BubbleSort(int[] array) { for(int i = 0;i<array.Length;i++) { for(int j = 0;j<array.Length - i - 1;j++) {

2015-10-25 20:46:31 306

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除