Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsIsSame(Color4, Color4, Single) Method

Returns true if color the difference between each color component is smaller than the specified tolerance.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static bool IsSame(
	 in Color4 color1,
	 in Color4 color2,
	float tolerance
)

Parameters

color1  Color4
first Color4
color2  Color4
second Color4
tolerance  Single
float value that specifies how big the difference between values can be so that the values are considered the same

Return Value

Boolean
true if color1 is similar to color2 taking the tolerance into account
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MathUtils.IsSame(Ab4d.SharpEngine.Common.Color4@,Ab4d.SharpEngine.Common.Color4@,System.Single)"]

See Also