Orientation
MDL Functionz軸とx軸を表す2つのベクトルを返します。
説明
- 1つの軸
- axis_typeはaxisを指します。
- 2つの軸
- axis_typeはaxisを指し、plane_typeはplane上に存在します。
- Angles
- 度またはラジアンで表した、rmマーカーについてのオイラー角
シグネチャ
zv, xv = Orientation(
angles =None,
degrees = False,
rm = None,
axis_type = None,
axis = None,
origin = Point(0.0,0.0,0.0),
plane_type = None,
plane = None,
mirror = False)
入力引数
- angles
- 方向を定義するオイラー角。
- degrees
- オイラー角をラジアンと度のどちらで表すかを指定します。
- rm
- 方向を定義する参照マーカー。
- axis_type
- 引数axisで定義する軸を指定します。
- axis
- 軸の方向を定義します。
- origin
- 原点を定義し、axisまたはplaneをポイントで定義する場合にのみ使用されます。
- plane_type
- 引数planeで定義される2つ目の軸を指定します。
- plane
- 2つ目の軸の方向を定義します。
戻り値
- zv
- z軸を定義するベクトル。
- xv
- x軸を定義するベクトル。
使用法
# Define Orientation by Euler Angles
zv, xv = Orientation((90,90,0), degrees=True)
# Define Orientation by one axis
zv, xv = Orientation(axis_type=”X”, axis=Vector(0,0,1))
# Define Orientation by two axis
zv, xv = Orientation(
axis_type = ”X”,
axis = Vector(0,0,1),
plane_type = “XZ”,
plane = Vector(1,0,0),
)