com.jogamp.opengl.math.Quaternion.setFromAngleAxis()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中com.jogamp.opengl.math.Quaternion.setFromAngleAxis方法的一些代码示例,展示了Quaternion.setFromAngleAxis的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quaternion.setFromAngleAxis方法的具体详情如下:
包路径:com.jogamp.opengl.math.Quaternion
类名称:Quaternion
方法名:setFromAngleAxis

Quaternion.setFromAngleAxis介绍

[英]Initialize this quaternion with given non-normalized axis vector and rotation angle

Implementation Details:

  • #setIdentity() if axis is FloatUtil#isZero(float,float) using FloatUtil#EPSILON
    [中]使用给定的非标准化轴向量和旋转角度初始化此四元数
    实施细节:
    *#setIdentity()如果轴是FloatUtil#使用FloatUtil#EPSILON为零(float,float)

代码示例

代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub

tmpPivotVec[(dominantIndex + 2) % 3] =  0f;
return setFromAngleAxis(theta, tmpPivotVec, tmpNormalVec);

代码示例来源:origin: org.jogamp.jogl/jogl

tmpPivotVec[(dominantIndex + 2) % 3] =  0f;
return setFromAngleAxis(theta, tmpPivotVec, tmpNormalVec);

代码示例来源:origin: org.jogamp.jogl/jogl-all-noawt

tmpPivotVec[(dominantIndex + 2) % 3] =  0f;
return setFromAngleAxis(theta, tmpPivotVec, tmpNormalVec);

相关文章