流浪のwolf

卷帝

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 73 下一页

2024年5月1日

反射获取Exception的所有类

摘要: var test = "test"; $"{test} 喜喜".Dump(); // 反射 var types = Assembly .GetAssembly(typeof(Exception)) .GetTypes() .Cache(); types.Dump(); 阅读全文

posted @ 2024-05-01 18:19 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑

LINQ 统计字符频率

摘要: var arr = new string[] {"test","zhulongxu","asdfdgd","yangmi","sdfytersy"}; var query = from w in arr from c in w group c by c into g select new { g.K 阅读全文

posted @ 2024-05-01 10:58 流浪のwolf 阅读(4) 评论(0) 推荐(0) 编辑

threejs 几何体的本质 顶点

摘要: 几何体的线框模式, 一个正方平面最少可以由4个顶点组成,两个三角形组成(公用了 2个顶点,使用了索引创建顶点属性) 。 // 导入 threejs import * as THREE from "three"; import { OrbitControls } from "three/example 阅读全文

posted @ 2024-05-01 09:43 流浪のwolf 阅读(5) 评论(0) 推荐(0) 编辑

threejs - js库 gui 的使用 调试开发3D效果

摘要: // 导入 threejs import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; // 引入dat.gui.js的一个类GUI imp 阅读全文

posted @ 2024-05-01 09:13 流浪のwolf 阅读(92) 评论(0) 推荐(0) 编辑

2024年4月27日

threejs 浏览器窗口resize变化 自适应 html 全屏

摘要: 全屏:画布全屏和body页面全屏; // 导入 threejs import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; // 创建场景 阅读全文

posted @ 2024-04-27 16:37 流浪のwolf 阅读(81) 评论(0) 推荐(0) 编辑

2024年4月25日

Math 数学库

摘要: Math.random() 随机数字 Math.PI 圆周率 阅读全文

posted @ 2024-04-25 19:44 流浪のwolf 阅读(1) 评论(0) 推荐(0) 编辑

threejs 父元素 相对位置 position 网格对象

摘要: 设置position都是相对于父元素的位置设置的 // 导入 threejs import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; / 阅读全文

posted @ 2024-04-25 19:29 流浪のwolf 阅读(38) 评论(0) 推荐(0) 编辑

轨道控制器 threejs

摘要: 就是一个可以360转动的相机,通过不断的改变相机的参数 然后渲染达到效果。 // 引入相机控件 -- 轨道控制器 // console.log('OrbitControls',OrbitControls); const controls = new OrbitControls(camera,rend 阅读全文

posted @ 2024-04-25 19:14 流浪のwolf 阅读(2) 评论(0) 推荐(0) 编辑

2024年4月21日

threejs - 渲染第一个3D场景 - 旋转的正方体

摘要: 1. 安装 threejs & 使用 2. 创建三要素 场景 scene 相机 camera 渲染器 render 3. 场景 new THREE.Scene() 相机分为 2 种 1. 透视相机 2. 正交相机 渲染器的使用 把canvas标签渲染到body 页面 document.body.ap 阅读全文

posted @ 2024-04-21 14:20 流浪のwolf 阅读(14) 评论(0) 推荐(0) 编辑

2024年4月20日

nestjs 中管道的使用-验证DTO

摘要: 1. 安装管道 nest g pi role 意思是安装一个role模块的管道 2. 在controller中使用管道 管道的作用: 1. 数据的转换 2. DTO规则验证 一般使用全局配置管道 区别: 自己写:需要一个个的带入 阅读全文

posted @ 2024-04-20 09:24 流浪のwolf 阅读(25) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 73 下一页