Offset 構造体
二次元座標または移動量を倍精度の成分で表します。
名前空間: FloatSoda.Abstractions.Geometries
アセンブリ: FloatSoda.Abstractions.dll
public readonly record struct Offset : IEquatable<Offset>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”Offset(double, double)
Section titled “Offset(double, double)”二次元座標または移動量を倍精度の成分で表します。
public Offset(double X = 0, double Y = 0)パラメーター
Section titled “パラメーター”X double
水平方向の成分。単位は利用する座標系に従い、既定値は0です。
Y double
垂直方向の成分。単位は利用する座標系に従い、既定値は0です。
両方の成分が1の座標または移動量を取得します。
public static Offset One { get; }プロパティの値
Section titled “プロパティの値”水平方向の成分。単位は利用する座標系に従い、既定値は0です。
public double X { get; init; }プロパティの値
Section titled “プロパティの値”垂直方向の成分。単位は利用する座標系に従い、既定値は0です。
public double Y { get; init; }プロパティの値
Section titled “プロパティの値”両方の成分が0の座標または移動量を取得します。
public static Offset Zero { get; }プロパティの値
Section titled “プロパティの値”operator +(Offset, Offset)
Section titled “operator +(Offset, Offset)”二つの値の対応する成分を加算します。
public static Offset operator +(Offset a, Offset b)パラメーター
Section titled “パラメーター”a Offset
加算される値。
b Offset
加算する値。
両方の値の対応する成分を加算した結果。
operator /(Offset, double)
Section titled “operator /(Offset, double)”各成分を指定された除数で除算します。
public static Offset operator /(Offset a, double b)パラメーター
Section titled “パラメーター”a Offset
除算する値。
b double
各成分を除算する除数。
各成分を除数で除算した結果。
除数が0の場合の結果は倍精度浮動小数点数の除算規則に従います。
implicit operator Offset(SKPoint)
Section titled “implicit operator Offset(SKPoint)”SKPointを同じ成分の値へ変換します。
public static implicit operator Offset(SKPoint point)パラメーター
Section titled “パラメーター”point SKPoint
変換する単精度の座標。
各成分を倍精度で保持する変換結果。
implicit operator SKPoint(Offset)
Section titled “implicit operator SKPoint(Offset)”値を同じ成分のSKPointへ変換します。
public static implicit operator SKPoint(Offset offset)パラメーター
Section titled “パラメーター”offset Offset
変換する倍精度の座標または移動量。
各成分を単精度へ変換した座標。
各成分は単精度へ変換されるため、精度が低下する場合があります。
operator *(Offset, double)
Section titled “operator *(Offset, double)”各成分を指定された倍率で拡大または縮小します。
public static Offset operator *(Offset a, double b)パラメーター
Section titled “パラメーター”a Offset
拡大または縮小する値。
b double
各成分に乗算する倍率。
各成分に倍率を乗算した結果。
operator *(double, Offset)
Section titled “operator *(double, Offset)”指定された倍率で各成分を拡大または縮小します。
public static Offset operator *(double a, Offset b)パラメーター
Section titled “パラメーター”a double
各成分に乗算する倍率。
b Offset
拡大または縮小する値。
各成分に倍率を乗算した結果。
operator -(Offset, Offset)
Section titled “operator -(Offset, Offset)”一つ目の値から二つ目の値の対応する成分を減算します。
public static Offset operator -(Offset a, Offset b)パラメーター
Section titled “パラメーター”a Offset
減算される値。
b Offset
減算する値。
一つ目の値から二つ目の値の対応する成分を減算した結果。
operator -(Offset)
Section titled “operator -(Offset)”各成分の符号を反転します。
public static Offset operator -(Offset a)パラメーター
Section titled “パラメーター”a Offset
符号を反転する値。
各成分の符号を反転した結果。