首页 \ 问答 \ 创建一个包含2个以上索引的表的ORACLE数据字典[关闭](Create an ORACLE data dictionary of tables with more than 2 indexes [closed])

创建一个包含2个以上索引的表的ORACLE数据字典[关闭](Create an ORACLE data dictionary of tables with more than 2 indexes [closed])

我在尝试在ORACLE数据字典中找出一个表是否有超过2个索引时遇到了麻烦。


I'm having trouble trying to figure out in an ORACLE data dictionary whether a table has more than 2 indexes.


原文:https://stackoverflow.com/questions/15103322
更新时间:2022-02-19 14:02

最满意答案

您将坐标存储为int s。

每次进行旋转时,都会进行不产生整数的计算; 当你施放时,你截断整数,向零舍入。 因此收缩。

使用double代替,或者更好,简单地计算旋转矩阵并在渲染时将其应用于坐标。


You're storing the coordinates as ints.

Each time you do a rotation, you do a calculation which doesn't yield an integer; when you cast, you truncate the integer, rounding towards zero. Hence the shrinkage.

Use double instead, or, better, simply calculate a rotation matrix and apply that to the coordinates when you are rendering it.

相关问答

更多
  • 您不能只绘制图像,然后在此之后继续调用旋转,并期望它旋转您之前渲染的所有内容。 这不是它的工作原理。 OpenGL本来可以这样工作,但事实并非如此。 在渲染当前绘制的零件之前,需要调用变换函数(旋转,缩放,平移); 对于多物体场景(想想所有在不同位置的2个立方体以及彼此独立地移动/旋转),您将重置 - 转换 - 绘制 - 转换 - 绘制 - 等。 可以把它想象成你正在移动画笔,而不是你拍摄照片的相机。 因此,您应该在每一帧(在循环内)重新绘制该形状,并且通常您应该在渲染之前将每个帧的视图重置为单位矩阵(或者 ...
  • 找到它 - 这解决了我的问题(悬停在立方体上)。 说明:从右到左计算变换堆栈。 因此,如果我们想要旋转围绕z轴变换的元素,我们需要将此变换设置为第一个。 如果原件是 transform: translateX(-50%) translateY(-50%); 然后 transform: rotateZ(value) translateX(-50%) translateY(-50%); 将围绕观察者z轴旋转元素(所需效果) transform: translateX(-50%) translateY(-50 ...
  • 我完全同意Drew的回答。 但是,我想我会指出一个精心编写的教程系列,它展示了这些概念的实际应用: http://en.wikibooks.org/wiki/OpenGL_Programming 从前3个教程开始学习着色器基础知识,然后第4和第5个教程深入研究三角形和立方体的旋转。 此外,这些示例使用FreeGLUT,这是一个框架,允许您使用按键,鼠标移动,鼠标按下等轻松地与您的代码进行交互。 I agree completely with Drew's answer. However, I figured ...
  • 您将坐标存储为int s。 每次进行旋转时,都会进行不产生整数的计算; 当你施放时,你截断整数,向零舍入。 因此收缩。 使用double代替,或者更好,简单地计算旋转矩阵并在渲染时将其应用于坐标。 You're storing the coordinates as ints. Each time you do a rotation, you do a calculation which doesn't yield an integer; when you cast, you truncate the int ...
  • 我正要告诉你使用一个外部3D软件来设置枢轴点到你屏幕截图中的位置,但它看起来像你想用多个支点来做到这一点,所以你将使用空的GameObjects来完成这一点。 从你的截图中,你似乎走在了正确的轨道上。 1.创建空GameObjects并将它们放置在要旋转立方体的边缘,然后将它们放在立方体下面。 2。使用 transform.RotateAround不transform.Rotate 。旋转旋转立方体。 第一个参数应该是边缘枢轴点。 第二个参数是要旋转立方体的轴。 第三个是角度。 //cube to rota ...
  • 通常,您只想从显示回调中调用OpenGL函数。 修改keyPressed以增加变量并调用glutPostRedisplay()和dibujarCubo以将该变量用作glRotatef()参数。 Generally you only want to call OpenGL functions from the display callback. Modify keyPressed to increment a variable & call glutPostRedisplay() and dibujarCub ...
  • 看到这篇文章 ,也许这一个 旋转总是在0,0左右,所以如果你想围绕其他点旋转,你需要先将东西移动到0,0,然后在你的情况下,你需要将它移回去 // moves texcoords back since they're we moved from where they need to be mat4.translate(TMatrix, [.5, .5, 0]); // rotates around 0,0 mat4.rotate(TMatrix,degToRad(xRot3), [0.0, 0.0, 1. ...
  • 免责声明: jozxyqk的答案似乎对我更好。 这个答案以肮脏的方式解决了这个问题。 正如此答案中所述,您正在滥用glutPostRedisplay 。 问题是, glutPostRedisplay会将当前窗口标记为需要重新显示,但只有当您再次进入glutMainLoop后才会完成。 这只发生一次,因此只有一个睡眠似乎工作。 事实上,所有三个睡眠工作,但你只有一个300毫秒后重绘。 要解决这个问题,你必须找到另一种重画场景的方式。 while(i--){ x_pos += 3; sleep( ...
  • 您应该将speed与Time.deltaTime相乘,否则您的旋转速度将取决于当前帧速率。 你可能正在局部空间中添加旋转,这会让一切都变得混乱。 RotateScript.cs using UnityEngine; public class RotateScript : MonoBehaviour { float speed = 100f; // Use this for initialization void Start() { } // Update is called once per fr ...
  • 不是增加gamma,theta和phi,而是运行相同的代码,但只增加三个变量中的一个。 对三个变量中的每一个重复。 实际上,您将会看到您的新代码一次以三个不同的维度旋转; 也许它看起来并不像你认为的那样? 或者也许你认为它会从立方体的角度改变,但它实际上是从相机的角度进行坐标转换? 此外,更简单的出发地点可能来自场景立方体示例:https://github.com/vispy/vispy/blob/master/examples/basics/scene/cube.py 。 除非您实际上想要了解较低级别的O ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)