CMatrix:Normalize
The Normalize method normalizes the CMatrix to a volume of 1.0.
CMatrix:Normalize() |
This method computes a scale factor to adjust the matrix values to a total sum of 1.0. This factor is applied to the CMatrix. If any matrix members are not numbers, the results are probably not meaningful.
The following script normalizes the CMatrix:
|
-- create a CMatrix |
|
-- set the matrix weights |
|
-- compute and apply the normalization factor |
|
-- result: Vol = 1 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.