Struct Coordinates3d
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
Represents a 3d point in coordinate space
public struct Coordinates3d : IEquatable<Coordinates3d>
- Implements
- Inherited Members
- Extension Methods
Constructors
Coordinates3d(double, double, double)
public Coordinates3d(double x, double y, double z)
Parameters
Properties
AreReal
public bool AreReal { get; }
Property Value
Infinity
public static Coordinates3d Infinity { get; }
Property Value
NaN
public static Coordinates3d NaN { get; }
Property Value
Origin
public static Coordinates3d Origin { get; }
Property Value
X
public double X { readonly get; set; }
Property Value
Y
public double Y { readonly get; set; }
Property Value
Z
public double Z { readonly get; set; }
Property Value
Methods
Coordinates2d()
public Coordinates Coordinates2d()
Returns
Distance(Coordinates3d)
public double Distance(Coordinates3d pt)
Parameters
Returns
DistanceSquared(Coordinates3d)
public double DistanceSquared(Coordinates3d pt)
Parameters
Returns
Equals(Coordinates3d)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Coordinates3d other)
Parameters
otherCoordinates3dAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
WithDelta(double, double, double)
public Coordinates3d WithDelta(double dX, double dY, double dZ)
Parameters
Returns
Operators
operator ==(Coordinates3d, Coordinates3d)
public static bool operator ==(Coordinates3d a, Coordinates3d b)
Parameters
Returns
operator !=(Coordinates3d, Coordinates3d)
public static bool operator !=(Coordinates3d a, Coordinates3d b)