Documentation > Mesh Ops Plugin BPLibrary > Fast Dist Linear Color

Fast Dist Linear Color

Distance squared from LinearColor A to LinearColor B. Use (distance*distance) for comparisons - i.e. (FastDistLinearColor(A,B)<=(dist*dist)), or compare two FastDistLinearColor results directly.

Inputs

A
Linear Color Structure (by ref)

B
Linear Color Structure (by ref)

Outputs

Return Value
Float

Distance squared from LinearColor A to LinearColor B. Use (distance*distance) for comparisons - i.e. (FastDistLinearColor(A,B)<=(dist*dist)), or compare two FastDistLinearColor results directly.