Class Centroid
A weighted centroid of a fuzzy shape.
public sealed class Centroid
- Inheritance
-
Centroid
- Inherited Members
Constructors
Centroid(double, double)
A weighted centroid of a fuzzy shape.
public Centroid(double value, double weight)
Parameters
valuedoubleThe position of the centroid.
weightdoubleThe weight of the centroid, the area of the shape.
Fields
Zero
A centroid at 0 with no weight.
public static readonly Centroid Zero
Field Value
Properties
Value
Gets the position of the centroid.
public double Value { get; }
Property Value
Weight
Gets the weight of the centroid, the area of the shape.
public double Weight { get; }