BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.RectangleD Struct Reference

Public Member Functions

 RectangleD (double X, double Y, double W, double H)
 
System.Drawing.Rectangle ToRectangleInt ()
 
bool IntersectsWith (RectangleD p)
 
bool IntersectsWith (PointD p)
 
bool IntersectsWith (double x, double y)
 
RectangleF ToRectangleF ()
 
override string ToString ()
 

Properties

double X [get, set]
 
double Y [get, set]
 
double W [get, set]
 
double H [get, set]
 

Detailed Description

Definition at line 582 of file Bio.cs.

Constructor & Destructor Documentation

◆ RectangleD()

BioCore.RectangleD.RectangleD ( double  X,
double  Y,
double  W,
double  H 
)

Definition at line 594 of file Bio.cs.

Member Function Documentation

◆ IntersectsWith() [1/3]

bool BioCore.RectangleD.IntersectsWith ( double  x,
double  y 
)

If the point is within the rectangle, return true. Otherwise, return false

Parameters
xThe x coordinate of the point to check
yThe y coordinate of the point to test.
Returns
A boolean value.

Definition at line 628 of file Bio.cs.

◆ IntersectsWith() [2/3]

bool BioCore.RectangleD.IntersectsWith ( PointD  p)

Definition at line 618 of file Bio.cs.

◆ IntersectsWith() [3/3]

bool BioCore.RectangleD.IntersectsWith ( RectangleD  p)

If any of the four corners of the rectangle are inside the polygon, then the rectangle intersects with the polygon

Parameters
RectangleDThe rectangle to check for intersection with.
Returns
A boolean value.

Definition at line 611 of file Bio.cs.

◆ ToRectangleF()

RectangleF BioCore.RectangleD.ToRectangleF ( )

Definition at line 635 of file Bio.cs.

◆ ToRectangleInt()

System.Drawing.Rectangle BioCore.RectangleD.ToRectangleInt ( )

Definition at line 601 of file Bio.cs.

◆ ToString()

override string BioCore.RectangleD.ToString ( )

Definition at line 639 of file Bio.cs.

Property Documentation

◆ H

double BioCore.RectangleD.H
getset

Definition at line 591 of file Bio.cs.

◆ W

double BioCore.RectangleD.W
getset

Definition at line 590 of file Bio.cs.

◆ X

double BioCore.RectangleD.X
getset

Definition at line 588 of file Bio.cs.

◆ Y

double BioCore.RectangleD.Y
getset

Definition at line 589 of file Bio.cs.


The documentation for this struct was generated from the following file: