Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing circle constructor #1623

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading