腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(708)
视频
沙龙
1
回答
使用路径提取UIImage
、
、
(@"%f, %f", x+(width/2)*
cosf
(A)-(height/2)*sinf(A), y+(height/2)*
cosf
(A)-(width/2)*sinf(A)); [aPath moveToPointy-(
浏览 3
提问于2012-09-04
得票数 2
回答已采纳
1
回答
无法在OpenGL ES 2.0中通过glDrawElements绘制三角形
、
、
、
、
(v) *
cosf
(u); // x spherePoints[(points - 1) * 3] = fRadius *
cosf
(v) *
cosf
(u + uStep); // x
浏览 6
提问于2012-03-19
得票数 0
回答已采纳
1
回答
三维空间中的速度分量
PS:这些是我对速度和哈欠和俯仰的计算 cannon->magnitude * sinf(degToRads(cannon->zRotation)), cannon->magnitude *
cosf
(degToRads(cannon->zRotation)) *
cosf
(degToR
浏览 65
提问于2020-05-16
得票数 0
2
回答
点旋转奇怪,我的计算有什么问题?
、
、
、
、
float rad) { *sin = *sin *
cosf
(rad) + *cos * sinf(rad); static float rotation = 0; *sin =
浏览 2
提问于2015-09-24
得票数 3
回答已采纳
1
回答
针对SFU的特殊CUDA双精度触发功能
、
然而,我发现有两个姐妹函数
cosf
(x)和__
cosf
(x),后者在SFU上运行,总体上比原来的
cosf
(x)函数快得多。当然,编译器不会抱怨__
cosf
(x)函数。 有没有我遗漏的图书馆?
浏览 2
提问于2012-07-19
得票数 1
回答已采纳
1
回答
GL_QUAD_STRIP上的OpenGL照明和着色
、
、
GL_QUAD_STRIP ) ; { y = sinf( lat ) * sinf( lon ) ; x =
cosf
( lat +
浏览 2
提问于2011-10-09
得票数 3
回答已采纳
1
回答
数学霓虹库中的函数
cosf
_neon和sinf_neon会返回相同的值吗?
、
、
、
但在运行测试代码math_debug时,我和我在此示例中添加了
cosf
_neon和sinf_neon,它们将返回相同的值。就像这样(这些代码被添加到数学霓虹库的测试代码中):printf("sinf neon
cosf
_neon的正确值为0.933580,sinf_neon的正确值为0.358368。
cosf
_neon函数是: #define sinf_neon
浏览 2
提问于2018-03-20
得票数 0
1
回答
Opengl奇怪的旋转
、
、
、
、
elapsedTime * 0.2f; { vertexArray[i+1] = (vertexArray[i] * sinf(theta)) + (vertexArray[i+1] *
cosf
浏览 1
提问于2013-01-11
得票数 2
回答已采纳
1
回答
为什么旋转和方向之间有90度的差别?
、
、
、
、
vf2d position = { 0.0f, 0.0f };现在,我旋转(并偏移)三角形如下: float y2 = triangle.p2.x * sinf(-angle) + triangle.p2.y *
cosf
(angle) + position.y; 当我增加每个
浏览 4
提问于2021-05-01
得票数 0
回答已采纳
1
回答
为什么我看到这些功能之间有如此巨大的性能差异?
、
、
double thetar,double phir,double xi,double yi,double zi,double *xf,double *yf,double *zf) { double sinp = sin(psir); double sint = sin(thetar);
浏览 3
提问于2013-04-08
得票数 1
回答已采纳
1
回答
如何计算每个有角度的轴上的速度?
我能够计算出宇宙飞船在平面上的速度,具有朝向(alfa角度),例如:float sinf = sin(alfa * M_PI/180.0); vym = vy;然而,当我在添加Beta角(船的垂直朝向)时遇到问题,我如何计算每个轴上的三个速度
浏览 0
提问于2017-09-25
得票数 0
2
回答
多维数组类误差
、
、
、
1.0f; rot[1][0]= sinf(theta); rot[1][1]=
cosf
(theta);
浏览 5
提问于2014-07-17
得票数 1
回答已采纳
1
回答
无法在msvcr100.dll中使用GetProcAddress找到
cosf
、
首先,我决定选择数学
cosf
函数。经过一些搜索,我了解到所有的数学函数都可以在msvcr100.dll中找到。msvcr100.dll loaded\n"); FARPROC fun2 = getEntry(msvcr, "
cosf
FreeLibrary(msvcr);}msvcr100.dll loadedError: Entry
浏览 4
提问于2012-02-20
得票数 0
回答已采纳
3
回答
用于渲染3d球体的纹理坐标
、
、
、
GL_QUAD_STRIP ) ; { y = r*sinf(lat * degToRad) * sinf(lon * degToRad) ; glVertex3f(
浏览 5
提问于2012-04-24
得票数 1
回答已采纳
1
回答
圆内的圆环,动态调整大小
、
、
、
、
CGContextAddEllipseInRect(context, hole); dispX = (self.bounds.size.width / 2) + (
cosf
CGContextAddEllipseInRect(context, hole); dispX = (self.bounds.size.width / 2) - (
cosf
CGContextAddEllipseInRect(context, hole);
浏览 0
提问于2011-05-06
得票数 2
回答已采纳
1
回答
如何正确地处理opengl转换的矩阵?
、
、
、
(deg)+axis.x*axis.x*(1-
cosf
(deg)); m[2] = axis.z*axis.x*(1 -
cosf
(deg)) - axis.y*sinf(deg); m[5] =
cosf
(deg)+axis.y*axis.y*(1
浏览 0
提问于2019-02-09
得票数 1
回答已采纳
2
回答
OpenGl自定义旋转问题
、
(float angle) float radians = angle * (PI/180); { {0, 1, 0, 0}, {sinf(angle), 0,
cosf
浏览 6
提问于2013-11-14
得票数 1
回答已采纳
1
回答
‘`
cosf
`’,‘not’等不在‘not’中
、
、
在编译以下示例c++程序时:#include <stdio.h> {我收到以下错误消息:error: ‘
cosf
’ is not a member of ‘std’ 包括math.h和使用非名称空间的版本都很好。
浏览 1
提问于2019-06-02
得票数 15
回答已采纳
1
回答
为什么这段代码有时会返回NaN?
、
、
、
这通常根据输入返回NAN (“不是一个数字”): return 1.0f-
cosf
(ratio然后,我想这可能是数据类型错配,但是float和glfloat似乎是等价的:typedef float GLfloat;extern float
cosf
浏览 5
提问于2010-06-11
得票数 0
回答已采纳
2
回答
如何绘制带阴影但不旋转阴影的旋转UIView?
、
、
、
、
我想要在旋转后正确地涂上阴影。这是我的密码:myButton.layer.shadowRadius = 2.0;myButton.layer.shadowColor = [UIColor blackColor].CGColor;
浏览 2
提问于2011-04-25
得票数 13
回答已采纳
点击加载更多
相关
资讯
基于python语言的试验负载系统建模与设计
Python实用技巧——类,属性与装饰器
单频光纤激光器技术及应用前景
Cython 三分钟入门
GNU C Library 2.27 发布,包含大量更新内容
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券