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
float2halfSize
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
Equals(object)
public override readonly bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
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
float2b
float2
Returns
ToString()
public override readonly string ToString()
Returns
WH(in float2)
public static GcAABB WH(in float2 size)
Parameters
size
float2
Returns
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
Returns
XYWH(in float2, in float2)
public static GcAABB XYWH(in float2 position, in float2 size)
Parameters
position
float2size
float2
Returns
Operators
operator ==(GcAABB, GcAABB)
public static bool operator ==(GcAABB lh, GcAABB rh)
Parameters
Returns
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
implicit operator GcRect(GcAABB)
public static implicit operator GcRect(GcAABB aabb)
Parameters
aabb
GcAABB
Returns
operator !=(GcAABB, GcAABB)
public static bool operator !=(GcAABB lh, GcAABB rh)