重心3次モーメントの取得
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_measure_get_central_moment3(
FHANDLE hresult,
uint blobno,
ref double mg30,
ref double mg03,
ref double mg21,
ref double mg12
) |
Visual Basic |
---|
Public Shared Function fnFIE_measure_get_central_moment3 (
hresult As FHANDLE,
blobno As UInteger,
ByRef mg30 As Double,
ByRef mg03 As Double,
ByRef mg21 As Double,
ByRef mg12 As Double
) As Integer |
Parameters
- hresult
- Type: fvalgcli..::..FHANDLE
ブローブ解析結果ハンドル
- blobno
- Type: System..::..UInt32
対象ブローブのブローブ番号
- mg30
- Type: System..::..Double%
重心3次モーメントMG30
- mg03
- Type: System..::..Double%
重心3次モーメントMG03
- mg21
- Type: System..::..Double%
重心3次モーメントMG21
- mg12
- Type: System..::..Double%
重心3次モーメントMG12
Return Value
Type:
Int32
以下のエラーコードを返します。
エラーコード:f_err | 内容 |
---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_OBJECT | hresult に指定されたオブジェクトハンドルが不正 |
F_ERR_INVALID_PARAM | blobno に指定されたブローブ番号が不正, パラメータに IntPtr.Zero が渡された |
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Remarks
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
public void fnFIE_measure_get_central_moment3(FHANDLE result, uint blobno)
{
try
{
double mg30 = 0;
double mg03 = 0;
double mg21 = 0;
double mg12 = 0;
int status = api.fnFIE_measure_get_central_moment3(result, blobno, ref mg30, ref mg03, ref mg21, ref mg12);
Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_measure_get_central_moment3: エラーが発生しました。({0})", (f_err)status);
Console.WriteLine("fnFIE_measure_get_central_moment3");
Console.WriteLine("mg30={0}, mg03={1}, mg21={2}, mg12={3}", mg30, mg03, mg21, mg12);
}
finally
{
}
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
Public Sub fnFIE_measure_get_central_moment3(result As FHANDLE, blobno As UInteger)
Try
Dim mg30 As Double = 0
Dim mg03 As Double = 0
Dim mg21 As Double = 0
Dim mg12 As Double = 0
Dim status As Integer = api.fnFIE_measure_get_central_moment3(result, blobno, mg30, mg03, mg21, mg12)
Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_measure_get_central_moment3: エラーが発生しました。({0})", CType(status, f_err))
Console.WriteLine("fnFIE_measure_get_central_moment3")
Console.WriteLine("mg30={0}, mg03={1}, mg21={2}, mg12={3}", mg30, mg03, mg21, mg12)
Finally
End Try
End Sub
End Class |
See Also