構造体 GcRect
Namespace: GameCanvas
csharp
public struct GcRect : IPrimitive<GcRect>継承元
コンストラクター
GcRect(float, float, float, float, float)
csharp
public GcRect(in float x, in float y, in float width, in float height, in float radian = 0f)コンストラクタ
パラメーター
x— X座標y— Y座標width— 横幅height— 縦幅radian— 回転(弧度法)
GcRect(float2, float, float, float)
csharp
public GcRect(in float2 position, in float width, in float height, in float radian = 0f)コンストラクタ
パラメーター
position— 位置width— 横幅height— 縦幅radian— 回転(弧度法)
GcRect(float2, float2, float)
csharp
public GcRect(in float2 position, in float2 size, in float radian = 0f)コンストラクタ
パラメーター
position— 位置size— 大きさradian— 回転(弧度法)
GcRect(Rect, float)
csharp
public GcRect(in Rect rect, in float radian = 0f)コンストラクタ
パラメーター
rect— 矩形radian— 回転(弧度法)
フィールド
Position
csharp
public float2 Position位置
Radian
csharp
public float Radian回転(弧度法)
Size
csharp
public float2 Size大きさ
メソッド
Equals(GcRect)
csharp
public readonly bool Equals(GcRect other)Equals(object)
csharp
public override readonly bool Equals(object obj)FromDegrees(float, float, float, float, float)
csharp
public static GcRect FromDegrees(in float x, in float y, in float width, in float height, in float degree)度数法で回転を指定して GcRect を生成します
パラメーター
x— X座標y— Y座標width— 横幅height— 縦幅degree— 回転(度数法)
FromDegrees(float2, float2, float)
csharp
public static GcRect FromDegrees(in float2 position, in float2 size, in float degree)度数法で回転を指定して GcRect を生成します
パラメーター
position— 位置size— 大きさdegree— 回転(度数法)
GetHashCode()
csharp
public override readonly int GetHashCode()ToString()
csharp
public override readonly string ToString()演算子
explicit operator GcRect(Rect)
csharp
public static explicit operator GcRect(Rect rect)operator !=(GcRect, GcRect)
csharp
public static bool operator !=(GcRect lh, GcRect rh)operator ==(GcRect, GcRect)
csharp
public static bool operator ==(GcRect lh, GcRect rh)