Struct Point2D
A data point consisting of X and Y spatial coordinates and a brightness value.
Implements
Namespace: JoeScan.Pinchot
Assembly: JoeScan.Pinchot.dll
Syntax
public struct Point2D : IEquatable<Point2D>
Constructors
Point2D(Double, Double, Int32)
Initializes a new instance of the Point2D struct.
Declaration
public Point2D(double x, double y, int brightness)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y | |
System.Int32 | brightness |
Point2D(Single, Single, Int32)
Initializes a new instance of the Point2D struct.
Declaration
public Point2D(float x, float y, int brightness)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y | |
System.Int32 | brightness |
Properties
Brightness
Gets or sets the brightness value of the Point2D.
Declaration
public int Brightness { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The brightness value of the Point2D. |
X
Gets or sets the X coordinate value of the Point2D in inches.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The X coordinate value of the Point2D in inches. |
Y
Gets or sets the Y coordinate value of the Point2D in inches.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The Y coordinate value of the Point2D in inches. |
Methods
Equals(Point2D)
Specifies whether this Point2D instance contains the same coordinates within 1/10,000th of an inch and the same brightness as the specified Point2D.
Declaration
public bool Equals(Point2D point)
Parameters
Type | Name | Description |
---|---|---|
Point2D | point | The Point2D to test for equality. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Specifies whether this Point2D instance contains the same coordinates within 1/10,000th of an inch
and the same brightness as the specified
Declaration
public override bool Equals(object point)
Parameters
Type | Name | Description |
---|---|---|
System.Object | point | The |
Returns
Type | Description |
---|---|
System.Boolean |
|
Operators
Equality(Point2D, Point2D)
Compares two Point2D objects. The result specifies whether the two Point2D objects have coordinates within 1/10,000th of an inch and have the same brightness.
Declaration
public static bool operator ==(Point2D pointA, Point2D pointB)
Parameters
Type | Name | Description |
---|---|---|
Point2D | pointA | A Point2D to compare. |
Point2D | pointB | A Point2D to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(Point2D, Point2D)
Compares two Point2D objects. The result specifies whether the two Point2D objects have coordinates that are not within 1/10,000th of an inch or do not have the same brightness.
Declaration
public static bool operator !=(Point2D pointA, Point2D pointB)
Parameters
Type | Name | Description |
---|---|---|
Point2D | pointA | A Point2D to compare. |
Point2D | pointB | A Point2D to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|