コンテンツにスキップ

AxisExtension クラス

Axisに関する判定と変換を提供します。

名前空間: FloatSoda.Geometrics
アセンブリ: FloatSoda.dll

public static class AxisExtension

object ← AxisExtension

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

水平軸と垂直軸を入れ替えます。

public static Axis Flip(this Axis axis)

axis Axis

入れ替える軸。

Axis

水平軸の場合は垂直軸、垂直軸の場合は水平軸。

ArgumentOutOfRangeException

axisが定義済みの値ではありません。

指定された軸の開始側が上端または左端に当たるかを判定します。

public static bool StartIsTopLeft(this Axis direction, VerticalDirection verticalDirection)

direction Axis

判定する軸。

verticalDirection VerticalDirection

垂直軸の進行方向。水平軸では結果に影響しません。

bool

開始側が左端または上端の場合はtrue、下端の場合はfalse。

ArgumentOutOfRangeException

directionまたはverticalDirectionが定義済みの値ではありません。