
JavaScript
文章平均质量分 50
cocoonyang
这个作者很懒,什么都没留下…
展开
-
轻量级WebGL库lightgl样例
WebGL (Web Graphic Library) is a standard for 3D graphic on web, and it is completely controlled by the web browser. Lightgl.js provides a quickly prototype WebGL applications.Here is a simple exa...原创 2018-06-10 17:41:16 · 1685 阅读 · 1 评论 -
JavaScript中JSON对象操作小结
简介JSON (JavaScript Object Notation) 是一种轻量的数据交换格式[1]. JSON有四种数据类型和两种数据集合类型,分别为: 数据类型: string, number, Boolean( true, false), null, 数据集合类型: object, array,string是一列包含在两个双引号之间,有0个或多个Unicode 字符的字符串。s...原创 2017-06-05 10:11:06 · 2654 阅读 · 1 评论 -
RSM Surrogate model methods examples
Surrogate model methods examples in SIPOPT原创 2017-10-17 22:32:04 · 972 阅读 · 1 评论 -
spearman
'use strict';var DEBUG = 0;module.exports = function( ) { this.spearman = function( x, y ) { // Checking parameters if( undefined == typeof( x ) ) {原创 2017-11-09 20:45:42 · 456 阅读 · 0 评论 -
ECMAScript Assignment Operators
Assignment Operators原创 2017-08-07 11:27:09 · 321 阅读 · 0 评论 -
已知平面上两点坐标及半径,求过两点圆弧的圆心坐标
功能:已知平面圆弧上两点坐标及圆半径,计算圆心坐标.编程语言:JavaScript分析: 给定圆弧半径,经过平面上两点的圆弧圆心落在两点的中垂线上, 一般有两个.算法:1) 计算两点之间的中点坐标.2)计算连接两点的方向向量.3)将两点方向向量顺时针旋转90度,得到中垂线方向向量.4)单位化中垂线方向向量.5)计算中点与圆心的偏移距离.6)将中点沿中垂线方向移动偏移距离,既...原创 2016-10-11 13:36:25 · 9618 阅读 · 1 评论 -
计算直线与平面交点的JavaScript脚本代码
已知直线过点 m(x_m, y_m, z_m ), 其方向向量为 V_l( vl_x, vl_y, vl_z ).平面过点 n(x_n, y_n, z_n), 法线方向为 V_p( vp_x, vp_y, vp_z ).直线的参数方程为x = x_m + vl_x * ty = y_m + vl_y * tz = z_m + vl_z * t平面方原创 2016-10-11 13:57:42 · 2027 阅读 · 1 评论 -
Traversing an Array in Node.js
Traversing an Array in JavaScriptvar array_1 = [1,2,3,4,5,6];var array_2 = [];array_2['first'] = 1;array_2['second'] = 2;array_2['third'] = 3;array_2['forth'] = 4;array_2['fifth'] = 5;array_原创 2017-02-21 14:33:56 · 493 阅读 · 1 评论 -
SVG path 标签简介
PathsPaths represent the outline of a shape which can be filled, stroked, used as a clipping path, or any combination of the three[1].dd = “path data”. The definition of the outline of a shape....原创 2018-07-23 22:06:57 · 3551 阅读 · 0 评论