Skip to content

Commit

Permalink
Merge pull request #1623 from glopesdev/issue-1622
Browse files Browse the repository at this point in the history
Add missing circle constructor
  • Loading branch information
glopesdev authored Nov 13, 2023
2 parents f84aafe + 17e845d commit 6ae3248
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Bonsai.Vision/Bonsai.Vision.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description>Bonsai Vision Library containing reactive algorithms for computer vision and image processing.</Description>
<PackageTags>Bonsai Rx Image Processing Computer Vision</PackageTags>
<TargetFramework>net462</TargetFramework>
<VersionPrefix>2.8.0</VersionPrefix>
<VersionPrefix>2.8.1</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OpenCV.Net" Version="3.4.2" />
Expand Down
12 changes: 12 additions & 0 deletions Bonsai.Vision/Circle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public struct Circle
/// </summary>
public float Radius;

/// <summary>
/// Initializes a new instance of the <see cref="Circle"/> structure with
/// the specified parameters.
/// </summary>
/// <param name="center">The center of the circle.</param>
/// <param name="radius">The radius of the circle.</param>
public Circle(Point2f center, float radius)
{
Center = center;
Radius = radius;
}

/// <summary>
/// Creates a <see cref="string"/> representation of this
/// <see cref="Circle"/> structure.
Expand Down

0 comments on commit 6ae3248

Please sign in to comment.