Table of Contents

Struct GcAABB

Namespace
GameCanvas
Assembly
GameCanvas.dll

軸に平行な矩形 (Axis Aligned Bounding Box)

public struct GcAABB : IPrimitive<GcAABB>, IEquatable<GcAABB>
Implements
Inherited Members
Extension Methods

Constructors

GcAABB(in float2, in float2)

public GcAABB(in float2 center, in float2 halfSize)

Parameters

center float2
halfSize float2

GcAABB(in Rect)

public GcAABB(in Rect rect)

Parameters

rect Rect

Fields

Center

中心座標

public float2 Center

Field Value

float2

HalfSize

大きさの半値

public float2 HalfSize

Field Value

float2

Methods

Equals(GcAABB)

public readonly bool Equals(GcAABB other)

Parameters

other GcAABB

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

GetPoint(in GcAnchor)

矩形の指定された点の座標を計算します

public readonly float2 GetPoint(in GcAnchor anchor)

Parameters

anchor GcAnchor

Returns

float2

MinMax(in float2, in float2)

2点を内包する最小の矩形

public static GcAABB MinMax(in float2 a, in float2 b)

Parameters

a float2
b float2

Returns

GcAABB

ToString()

public override readonly string ToString()

Returns

string

WH(in float2)

public static GcAABB WH(in float2 size)

Parameters

size float2

Returns

GcAABB

XYWH(in float, in float, in float, in float)

public static GcAABB XYWH(in float x, in float y, in float width, in float height)

Parameters

x float
y float
width float
height float

Returns

GcAABB

XYWH(in float2, in float2)

public static GcAABB XYWH(in float2 position, in float2 size)

Parameters

position float2
size float2

Returns

GcAABB

Operators

operator ==(GcAABB, GcAABB)

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

Parameters

lh GcAABB
rh GcAABB

Returns

bool

explicit operator Rect(GcAABB)

public static explicit operator Rect(GcAABB aabb)

Parameters

aabb GcAABB

Returns

Rect

explicit operator GcAABB(Rect)

public static explicit operator GcAABB(Rect rect)

Parameters

rect Rect

Returns

GcAABB

implicit operator GcRect(GcAABB)

public static implicit operator GcRect(GcAABB aabb)

Parameters

aabb GcAABB

Returns

GcRect

operator !=(GcAABB, GcAABB)

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

Parameters

lh GcAABB
rh GcAABB

Returns

bool