Skip to content

構造体 GcAABB

Namespace: GameCanvas

csharp
public struct GcAABB : IPrimitive<GcAABB>

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

継承元

コンストラクター

GcAABB(float2, float2)

csharp
public GcAABB(in float2 center, in float2 halfSize)

GcAABB(Rect)

csharp
public GcAABB(in Rect rect)

フィールド

Center

csharp
public float2 Center

中心座標

HalfSize

csharp
public float2 HalfSize

大きさの半値

メソッド

Equals(GcAABB)

csharp
public readonly bool Equals(GcAABB other)

Equals(object)

csharp
public override readonly bool Equals(object obj)

GetHashCode()

csharp
public override readonly int GetHashCode()

GetPoint(GcAnchor)

csharp
public readonly float2 GetPoint(in GcAnchor anchor)

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

MinMax(float2, float2)

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

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

ToString()

csharp
public override readonly string ToString()

WH(float2)

csharp
public static GcAABB WH(in float2 size)

XYWH(float, float, float, float)

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

XYWH(float2, float2)

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

演算子

explicit operator GcAABB(Rect)

csharp
public static explicit operator GcAABB(Rect rect)

explicit operator Rect(GcAABB)

csharp
public static explicit operator Rect(GcAABB aabb)

implicit operator GcRect(GcAABB)

csharp
public static implicit operator GcRect(GcAABB aabb)

operator !=(GcAABB, GcAABB)

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

operator ==(GcAABB, GcAABB)

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

Released under the MIT License.