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
centerfloat2halfSizefloat2
GcAABB(in Rect)
public GcAABB(in Rect rect)
Parameters
rectRect
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
otherGcAABB
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
GetPoint(in GcAnchor)
矩形の指定された点の座標を計算します
public readonly float2 GetPoint(in GcAnchor anchor)
Parameters
anchorGcAnchor
Returns
- float2
MinMax(in float2, in float2)
2点を内包する最小の矩形
public static GcAABB MinMax(in float2 a, in float2 b)
Parameters
afloat2bfloat2
Returns
ToString()
public override readonly string ToString()
Returns
WH(in float2)
public static GcAABB WH(in float2 size)
Parameters
sizefloat2
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
positionfloat2sizefloat2
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
aabbGcAABB
Returns
- Rect
explicit operator GcAABB(Rect)
public static explicit operator GcAABB(Rect rect)
Parameters
rectRect
Returns
implicit operator GcRect(GcAABB)
public static implicit operator GcRect(GcAABB aabb)
Parameters
aabbGcAABB
Returns
operator !=(GcAABB, GcAABB)
public static bool operator !=(GcAABB lh, GcAABB rh)