楕円と直線の交点の算出
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_cg_calc_cross_ellipse_and_line( DPNT_T center, double major, double minor, double theta, DLINE_T line, ref int cross_num, ref DPNT_T cross1, ref DPNT_T cross2 ) |
Visual Basic |
---|
Public Shared Function fnFIE_cg_calc_cross_ellipse_and_line ( center As DPNT_T, major As Double, minor As Double, theta As Double, line As DLINE_T, ByRef cross_num As Integer, ByRef cross1 As DPNT_T, ByRef cross2 As DPNT_T ) As Integer |
Parameters
- center
- Type: fvalgcli..::..DPNT_T
楕円の中心座標
- major
- Type: System..::..Double
楕円の主軸長
- minor
- Type: System..::..Double
楕円の副軸長
- theta
- Type: System..::..Double
楕円の主軸傾き ( -π/2 ≦ theta ≦ π/2 )
- line
- Type: fvalgcli..::..DLINE_T
直線L
- cross_num
- Type: System..::..Int32%
交点数
- cross1
- Type: fvalgcli..::..DPNT_T%
交点座標Pi1
- cross2
- Type: fvalgcli..::..DPNT_T%
交点座標Pi2
Return Value
Type: Int32以下のエラーコードを返します。
エラーコード:
f_err | 内容 |
---|---|
F_ERR_NONE | 正常終了 |
F_ERR_NOMEMORY | メモリ不足エラー |
F_ERR_CALC_IMPOSSIBLE | 計算不能エラー |
F_ERR_INVALID_PARAM | パラメータ異常 |
F_ERR_NO_LICENCE | ライセンスエラー |