Struct GcRect
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GameCanvas
Assembly: GameCanvas.dll
Syntax
public struct GcRect : IPrimitive<GcRect>, IEquatable<GcRect>
Constructors
GcRect(Single, Single, Single, Single, Single)
コンストラクタ
Declaration
public GcRect(in float x, in float y, in float width, in float height, in float radian = 0F)
Parameters
Type | Name | Description |
---|---|---|
Single | x | X座標 |
Single | y | Y座標 |
Single | width | 横幅 |
Single | height | 縦幅 |
Single | radian | 回転(弧度法) |
GcRect(float2, Single, Single, Single)
コンストラクタ
Declaration
public GcRect(in float2 position, in float width, in float height, in float radian = 0F)
Parameters
Type | Name | Description |
---|---|---|
float2 | position | 位置 |
Single | width | 横幅 |
Single | height | 縦幅 |
Single | radian | 回転(弧度法) |
GcRect(float2, float2, Single)
コンストラクタ
Declaration
public GcRect(in float2 position, in float2 size, in float radian = 0F)
Parameters
Type | Name | Description |
---|---|---|
float2 | position | 位置 |
float2 | size | 大きさ |
Single | radian | 回転(弧度法) |
GcRect(Rect, Single)
コンストラクタ
Declaration
public GcRect(in Rect rect, in float radian = 0F)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | 矩形 |
Single | radian | 回転(弧度法) |
Fields
Position
位置
Declaration
public float2 Position
Field Value
Type | Description |
---|---|
float2 |
Radian
回転(弧度法)
Declaration
public float Radian
Field Value
Type | Description |
---|---|
Single |
Size
大きさ
Declaration
public float2 Size
Field Value
Type | Description |
---|---|
float2 |
Methods
Equals(GcRect)
Declaration
public bool Equals(GcRect other)
Parameters
Type | Name | Description |
---|---|---|
GcRect | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
System.ValueType.ToString()
Operators
Equality(GcRect, GcRect)
Declaration
public static bool operator ==(GcRect lh, GcRect rh)
Parameters
Type | Name | Description |
---|---|---|
GcRect | lh | |
GcRect | rh |
Returns
Type | Description |
---|---|
Boolean |
Explicit(Rect to GcRect)
Declaration
public static explicit operator GcRect(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect |
Returns
Type | Description |
---|---|
GcRect |
Inequality(GcRect, GcRect)
Declaration
public static bool operator !=(GcRect lh, GcRect rh)
Parameters
Type | Name | Description |
---|---|---|
GcRect | lh | |
GcRect | rh |
Returns
Type | Description |
---|---|
Boolean |
Implements
System.IEquatable<T>