0

Maya では、setAttr() コマンドを使用する場合、float と double を変数タイプとして使用できます。違いはなんですか?ドキュメントの例は同じものです。

-type float3

Array of three floats
Value Syntax    float float float
Value Meaning   value1 value2 value3
Mel Example     setAttr node.float3Attr -type float3 1.1 2.2 3.3;
Python Example  cmds.setAttr('node.float3Attr',1.1,2.2,3.3,type='float3')

-type double3

Array of three doubles
Value Syntax    double double double
Value Meaning   value1 value2 value3
Mel Example     setAttr node.double3Attr -type double3 1.1 2.2 3.3;
Python Example  cmds.setAttr('node.double3Attr',1.1,2.2,3.3,type='double3')

http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/index.html

ありがとうございました!

4

1 に答える 1

1

浮動小数点数は 32 ビットです。倍精度浮動小数点数は 64 ビットです

double は、より大きく、より正確な数を保持できます。

于 2014-02-11T10:36:49.147 に答える