Struct PolarCoordinates
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
Represents a point in polar coordinate space
public struct PolarCoordinates
- Inherited Members
- Extension Methods
Constructors
PolarCoordinates(double, Angle)
Represents a point in polar coordinate space
public PolarCoordinates(double radius, Angle angle)
Parameters
Properties
Angle
public Angle Angle { readonly get; set; }
Property Value
CartesianCoordinates
[Obsolete("use ToCartesian()", true)]
public Coordinates CartesianCoordinates { get; }
Property Value
Radius
public double Radius { readonly get; set; }
Property Value
Methods
FromCartesian(Coordinates)
public static PolarCoordinates FromCartesian(Coordinates pt)
Parameters
ptCoordinates
Returns
FromCartesian(Coordinates, Coordinates)
public static PolarCoordinates FromCartesian(Coordinates pt, Coordinates origin)
Parameters
ptCoordinatesoriginCoordinates
Returns
ToCartesian()
public Coordinates ToCartesian()
Returns
ToCartesian(Coordinates)
public Coordinates ToCartesian(Coordinates origin)
Parameters
originCoordinates
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
WithAngle(Angle)
public PolarCoordinates WithAngle(Angle angle)
Parameters
angleAngle
Returns
WithAngleDegrees(double)
public PolarCoordinates WithAngleDegrees(double degrees)
Parameters
degreesdouble
Returns
WithAngleRadians(double)
public PolarCoordinates WithAngleRadians(double radians)
Parameters
radiansdouble
Returns
WithRadius(double)
public PolarCoordinates WithRadius(double radius)
Parameters
radiusdouble