Struct PolarPoint
Represents a point with polar coordinates
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
Constructors
PolarPoint(Double, Double)
Initializes polar coordinates
Declaration
public PolarPoint(double r, double theta)
Parameters
Type |
Name |
Description |
System.Double |
r |
|
System.Double |
theta |
|
PolarPoint(Point, Point)
Initializes polar coordinates from 2-d cartesian coordinates
Declaration
public PolarPoint(Point center, Point point)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
center |
|
System.Drawing.Point |
point |
|
PolarPoint(Int32, Int32, Int32, Int32)
Initializes polar coordinates from 2-d cartesian coordinates of 'x1, y1, x2, y2' format
Declaration
public PolarPoint(int x1, int y1, int x2, int y2)
Parameters
Type |
Name |
Description |
System.Int32 |
x1 |
|
System.Int32 |
y1 |
|
System.Int32 |
x2 |
|
System.Int32 |
y2 |
|
Properties
Point
Returns polar coordinate converted to 2-d cartesian coordinates.
Coordinates are relative to 0,0 of the angle base vertex
Declaration
public Point Point { get; }
Property Value
Type |
Description |
System.Drawing.Point |
|
R
R coordinate component which is coordinate distance from point of coordinates origin
Declaration
public double R { get; set; }
Property Value
Type |
Description |
System.Double |
|
Theta
Angular azimuth coordinate component. An angle must be between 0 and 2Pi.
Note: Due to screen Y coordinate going from top to bottom (in usual orientation)
Theta angle may be reversed, that is - be positive in the lower half coordinate plane.
Please refer to:
http://en.wikipedia.org/wiki/Polar_coordinates
Declaration
public double Theta { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Equality(PolarPoint, PolarPoint)
Declaration
public static bool operator ==(PolarPoint left, PolarPoint right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(PolarPoint, PolarPoint)
Declaration
public static bool operator !=(PolarPoint left, PolarPoint right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods