計測ライン(円弧)の長さを計算

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static int fnFIE_edge1d_calc_projection_arc_length(
	F_ARC arc,
	ref int length
)
Visual Basic
Public Shared Function fnFIE_edge1d_calc_projection_arc_length ( 
	arc As F_ARC,
	ByRef length As Integer
) As Integer

Parameters

arc
Type: fvalgcli..::..F_ARC
計測ライン(円弧)
  • x 中心x座標
  • y 中心y座標
  • radius 半径:0 < radius
  • start_angle 開始角:[0,2π]
  • sweep_angle 円弧の角度
    • 時計回り 正
    • 反時計回り 負
length
Type: System..::..Int32%
濃度プロファイルの長さ

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_PARAM不正なパラメータが渡された
  • length が IntPtr.Zero
  • arc が不正な値
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        public void fnFIE_edge1d_calc_projection_arc_length(F_ARC arc)
        {
            try
            {
                int length = 0;
                int status = api.fnFIE_edge1d_calc_projection_arc_length(arc, ref length);
                Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_edge1d_calc_projection_arc_length: エラーが発生しました。({0})", (f_err)status);
                Console.WriteLine("fnFIE_edge1d_calc_projection_arc_length");
                Console.WriteLine("length={0}", length);
            }
            finally
            {
            }
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    Public Sub fnFIE_edge1d_calc_projection_arc_length(arc As F_ARC)
        Try
            Dim length As Integer = 0
            Dim status As Integer = api.fnFIE_edge1d_calc_projection_arc_length(arc, length)
            Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_edge1d_calc_projection_arc_length: エラーが発生しました。({0})", CType(status, f_err))
            Console.WriteLine("fnFIE_edge1d_calc_projection_arc_length")
            Console.WriteLine("length={0}", length)
        Finally
        End Try
    End Sub
End Class

See Also