Struct AABB2D
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
Assembly: Assembly-CSharp.dll
Syntax
Constructors
|
Improve this Doc
View Source
AABB2D(float2, float2)
Declaration
public AABB2D(float2 min, float2 max)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float2 |
min |
Bottom left
|
Unity.Mathematics.float2 |
max |
Top right
|
Fields
|
Improve this Doc
View Source
max
Declaration
public readonly float2 max
Field Value
Type |
Description |
Unity.Mathematics.float2 |
|
|
Improve this Doc
View Source
min
Declaration
public readonly float2 min
Field Value
Type |
Description |
Unity.Mathematics.float2 |
|
Properties
|
Improve this Doc
View Source
Center
Declaration
public readonly float2 Center { get; }
Property Value
Type |
Description |
Unity.Mathematics.float2 |
|
|
Improve this Doc
View Source
IsValid
Declaration
public readonly bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Size
Declaration
public readonly float2 Size { get; }
Property Value
Type |
Description |
Unity.Mathematics.float2 |
|
Methods
|
Improve this Doc
View Source
Declaration
public bool ClipLine(ref Line2D line)
Parameters
Type |
Name |
Description |
Line2D |
line |
The line that will be clipped in place
|
Returns
Type |
Description |
System.Boolean |
True if the line was clipped. Which also indicates that there was an intersection with this box
|
|
Improve this Doc
View Source
Contains(in AABB2D)
Returns wether this AABB fully contains another
Declaration
public bool Contains(in AABB2D other)
Parameters
Type |
Name |
Description |
AABB2D |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsPoint(in float2)
Declaration
public bool ContainsPoint(in float2 point)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float2 |
point |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IntersectsRay(in float2, in float2)
Declaration
public bool IntersectsRay(in float2 rayPos, in float2 rayInvDir)
Parameters
Type |
Name |
Description |
Unity.Mathematics.float2 |
rayPos |
Ray origin position
|
Unity.Mathematics.float2 |
rayInvDir |
One over the ray's direction
|
Returns
Type |
Description |
System.Boolean |
If the ray intersected this AABB
|
|
Improve this Doc
View Source
IntersectsRay(in Ray2D)
Checks if this AABB intersects with a ray
Declaration
public bool IntersectsRay(in Ray2D ray)
Parameters
Type |
Name |
Description |
UnityEngine.Ray2D |
ray |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Overlaps(in AABB2D)
Returns wether this AABB overlaps with another AABB
Declaration
public bool Overlaps(in AABB2D other)
Parameters
Type |
Name |
Description |
AABB2D |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Extension Methods
AStar.FindPath<TGraph, TNode, TSeg, TProc>(ref TGraph, TNode, TNode, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarStops.FindPathStops<TGraph, TNode, TSeg, TMod>(ref TGraph, NativeSlice<TNode>, AStarSettings, ref Memory<TNode, TSeg>, ref TMod, ref NativeList<TSeg>, ref NativeList<Int32>)
AStarOption.FindOption<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.FindOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.EvalOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc)
AStarCheapestOption.FindCheapestTarget<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>, ref NativeList<TSeg>, ref NativeList<TSeg>)