Click or drag to resize

LengthMassPropertiesWeightedSum Method

Sum a list of mass properties together to get an aggregate mass, weighting each by a density factor.Ignores existing mass properties in this object.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static LengthMassProperties WeightedSum(
	IEnumerable<LengthMassProperties> summands,
	IEnumerable<double> weights
)

Parameters

summands
Type: System.Collections.GenericIEnumerableLengthMassProperties
An array of mass properties to add.
weights
Type: System.Collections.GenericIEnumerableDouble
An array of non-negative densities, of the same length as summands.

Return Value

Type: LengthMassProperties
An LengthMassProperties containing the result if successful, null if a failure occurs.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen summands or weights is null.
See Also