Skip to content

構造体 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)

Released under the MIT License.