Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed May 15, 2024
1 parent a649081 commit 4543df0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 49 deletions.
20 changes: 6 additions & 14 deletions src/DotRecast.Detour/DtBVNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,13 @@ 3. This notice may not be removed or altered from any source distribution.

namespace DotRecast.Detour
{
/**
* Bounding volume node.
*
* @note This structure is rarely if ever used by the end user.
* @see MeshTile
*/
/// Bounding volume node.
/// @note This structure is rarely if ever used by the end user.
/// @see dtMeshTile
public class DtBVNode
{
/** Minimum bounds of the node's AABB. [(x, y, z)] */
public int[] bmin = new int[3];

/** Maximum bounds of the node's AABB. [(x, y, z)] */
public int[] bmax = new int[3];

/** The node's index. (Negative for escape sequence.) */
public int i;
public int[] bmin = new int[3]; //< Minimum bounds of the node's AABB. [(x, y, z)]
public int[] bmax = new int[3]; //< Maximum bounds of the node's AABB. [(x, y, z)]
public int i; //< The node's index. (Negative for escape sequence.)
}
}
32 changes: 9 additions & 23 deletions src/DotRecast.Detour/DtLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,16 @@ 3. This notice may not be removed or altered from any source distribution.

namespace DotRecast.Detour
{
/**
* Defines a link between polygons.
*
* @note This structure is rarely if ever used by the end user.
* @see MeshTile
*/
/// Defines a link between polygons.
/// @note This structure is rarely if ever used by the end user.
/// @see dtMeshTile
public class DtLink
{
/** Neighbour reference. (The neighbor that is linked to.) */
public long refs;

/** Index of the next link. */
public int next;

/** Index of the polygon edge that owns this link. */
public int edge;

/** If a boundary link, defines on which side the link is. */
public int side;

/** If a boundary link, defines the minimum sub-edge area. */
public int bmin;

/** If a boundary link, defines the maximum sub-edge area. */
public int bmax;
public long refs; //< Neighbour reference. (The neighbor that is linked to.)
public int next; //< Index of the next link.
public int edge; //< Index of the polygon edge that owns this link.
public int side; //< If a boundary link, defines on which side the link is.
public int bmin; //< If a boundary link, defines the minimum sub-edge area.
public int bmax; //< If a boundary link, defines the maximum sub-edge area.
}
}
17 changes: 5 additions & 12 deletions src/DotRecast.Detour/DtPolyDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,13 @@ 3. This notice may not be removed or altered from any source distribution.

namespace DotRecast.Detour
{
/** Defines the location of detail sub-mesh data within a dtMeshTile. */
/// Defines the location of detail sub-mesh data within a dtMeshTile.
public readonly struct DtPolyDetail
{
/** The offset of the vertices in the MeshTile::detailVerts array. */
public readonly int vertBase;

/** The offset of the triangles in the MeshTile::detailTris array. */
public readonly int triBase;

/** The number of vertices in the sub-mesh. */
public readonly int vertCount;

/** The number of triangles in the sub-mesh. */
public readonly int triCount;
public readonly int vertBase; //< The offset of the vertices in the dtMeshTile::detailVerts array.
public readonly int triBase; //< The offset of the triangles in the dtMeshTile::detailTris array.
public readonly int vertCount; //< The number of vertices in the sub-mesh.
public readonly int triCount; //< The number of triangles in the sub-mesh.

public DtPolyDetail(int vertBase, int triBase, int vertCount, int triCount)
{
Expand Down

0 comments on commit 4543df0

Please sign in to comment.