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:
Markus Ewald 2007-05-31 19:15:39 +00:00
parent d977552d8f
commit 979e6328fb
3 changed files with 8 additions and 4 deletions

View File

@ -103,7 +103,10 @@
<XNAUseContentPipeline>false</XNAUseContentPipeline> <XNAUseContentPipeline>false</XNAUseContentPipeline>
<Name>RingMemoryStream</Name> <Name>RingMemoryStream</Name>
</Compile> </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"> <Compile Include="Source\Collections\RingMemoryStream.Test.cs">
<XNAUseContentPipeline>false</XNAUseContentPipeline> <XNAUseContentPipeline>false</XNAUseContentPipeline>
<Name>RingMemoryStream.Test</Name> <Name>RingMemoryStream.Test</Name>

View File

@ -97,7 +97,7 @@ namespace Nuclex.Support.Packing {
} }
// Determine the placement for the new rectangle // 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 // If a place for the rectangle could be found, update the height slice table to
// mark the region of the rectangle as being taken. // 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> /// <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="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="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> /// <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 int rectangleWidth, int rectangleHeight, out Point placement
) { ) {

View File

@ -37,7 +37,7 @@ namespace Nuclex.Support.Packing {
/// <remarks> /// <remarks>
/// A perfect packer would achieve an efficiency rating of 1.0. This is /// A perfect packer would achieve an efficiency rating of 1.0. This is
/// impossible however since the 24 squares cannot all be packed into /// 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 &amp; Reingold 1975). The closer
/// the efficiency rating is to 1.0, the better, with 0.99 being the /// the efficiency rating is to 1.0, the better, with 0.99 being the
/// mathematically best rating achievable. /// mathematically best rating achievable.
/// </remarks> /// </remarks>