首页 > 代码库 > 数学图形(1.1) 圆,椭圆
数学图形(1.1) 圆,椭圆
圆
vertices = 360w = from 0 to (2*PI)r = 10.0x = r*sin(w)y = r*cos(w)
圆面,面上有纹理坐标,有顶点色
vertices = D1:360 D2:100u = from 0 to (2*PI) D1v = from 0 to 10 D2x = sin(u)y = cos(u)r = (x+1)/2g = (y+1)/2b = v/10x = v*xy = v*y
椭圆
vertices = 1000r = 10.0e = 0.75t = from 0 to (2*PI)p = r/(1.0 - e*cos(t))x = p*sin(t)y = p*cos(t)
随机生成的椭圆
vertices = 360w = from 0 to (2*PI)a = rand2(1, 20)b = rand2(1, 20)x = a*sin(w)y = b*cos(w)
使用圆内旋轮线原理生成的椭圆
vertices = 12000a = 10r = 5d = rand2(0.5, 10)t = from 0 to (2*PI)x = (a - r)*cos(t) + d*cos((a/r - 1)*t)y = (a - r)*sin(t) - d*sin((a/r - 1)*t)
椭圆面
vertices = D1:360 D2:100u = from 0 to (2*PI) D1v = from 0.01 to 3 D2r = 10x = r*v*sin(u)y = r*cos(u)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。