Fixed a warning resulting from an invalid character in an XML comment; renamed findBestPlacement() to tryFindBestPlacement() which is more in sync with the conventions used by the .NET framework
git-svn-id: file:///srv/devel/repo-conversion/nusu@28 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
d977552d8f
commit
979e6328fb
|
@ -103,7 +103,10 @@
|
|||
<XNAUseContentPipeline>false</XNAUseContentPipeline>
|
||||
<Name>RingMemoryStream</Name>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs">
|
||||
<XNAUseContentPipeline>false</XNAUseContentPipeline>
|
||||
<Name>AssemblyInfo</Name>
|
||||
</Compile>
|
||||
<Compile Include="Source\Collections\RingMemoryStream.Test.cs">
|
||||
<XNAUseContentPipeline>false</XNAUseContentPipeline>
|
||||
<Name>RingMemoryStream.Test</Name>
|
||||
|
|
|
@ -97,7 +97,7 @@ namespace Nuclex.Support.Packing {
|
|||
}
|
||||
|
||||
// Determine the placement for the new rectangle
|
||||
bool fits = findBestPlacement(rectangleWidth, rectangleHeight, out placement);
|
||||
bool fits = tryFindBestPlacement(rectangleWidth, rectangleHeight, out placement);
|
||||
|
||||
// If a place for the rectangle could be found, update the height slice table to
|
||||
// mark the region of the rectangle as being taken.
|
||||
|
@ -110,8 +110,9 @@ namespace Nuclex.Support.Packing {
|
|||
/// <summary>Finds the best position for a rectangle of the given width</summary>
|
||||
/// <param name="rectangleWidth">Width of the rectangle to find a position for</param>
|
||||
/// <param name="rectangleHeight">Height of the rectangle to find a position for</param>
|
||||
/// <param name="placement">Received the best placement found for the rectangle</param>
|
||||
/// <returns>The best position for a rectangle of the specified dimensions</returns>
|
||||
private bool findBestPlacement(
|
||||
private bool tryFindBestPlacement(
|
||||
int rectangleWidth, int rectangleHeight, out Point placement
|
||||
) {
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Nuclex.Support.Packing {
|
|||
/// <remarks>
|
||||
/// A perfect packer would achieve an efficiency rating of 1.0. This is
|
||||
/// impossible however since the 24 squares cannot all be packed into
|
||||
/// the 70x70 square with no overlap (Bitner & Reingold 1975). The closer
|
||||
/// the 70x70 square with no overlap (Bitner & Reingold 1975). The closer
|
||||
/// the efficiency rating is to 1.0, the better, with 0.99 being the
|
||||
/// mathematically best rating achievable.
|
||||
/// </remarks>
|
||||
|
|
Loading…
Reference in New Issue
Block a user