Table of Contents

Struct GcRect

Namespace
GameCanvas
Assembly
GameCanvas.dll
public struct GcRect : IPrimitive<GcRect>, IEquatable<GcRect>
Implements
Inherited Members
Extension Methods

Constructors

GcRect(in float, in float, in float, in float, in float)

コンストラクタ

public GcRect(in float x, in float y, in float width, in float height, in float radian = 0)

Parameters

x float

X座標

y float

Y座標

width float

横幅

height float

縦幅

radian float

回転(弧度法)

GcRect(in float2, in float, in float, in float)

コンストラクタ

public GcRect(in float2 position, in float width, in float height, in float radian = 0)

Parameters

position float2

位置

width float

横幅

height float

縦幅

radian float

回転(弧度法)

GcRect(in float2, in float2, in float)

コンストラクタ

public GcRect(in float2 position, in float2 size, in float radian = 0)

Parameters

position float2

位置

size float2

大きさ

radian float

回転(弧度法)

GcRect(in Rect, in float)

コンストラクタ

public GcRect(in Rect rect, in float radian = 0)

Parameters

rect Rect

矩形

radian float

回転(弧度法)

Fields

Position

位置

public float2 Position

Field Value

float2

Radian

回転(弧度法)

public float Radian

Field Value

float

Size

大きさ

public float2 Size

Field Value

float2

Methods

Equals(GcRect)

public readonly bool Equals(GcRect other)

Parameters

other GcRect

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(GcRect, GcRect)

public static bool operator ==(GcRect lh, GcRect rh)

Parameters

lh GcRect
rh GcRect

Returns

bool

explicit operator GcRect(Rect)

public static explicit operator GcRect(Rect rect)

Parameters

rect Rect

Returns

GcRect

operator !=(GcRect, GcRect)

public static bool operator !=(GcRect lh, GcRect rh)

Parameters

lh GcRect
rh GcRect

Returns

bool