![]() | |
Extensions Methods |
The Extensions type exposes the following members.
Name | Description | |
---|---|---|
![]() | Saturate(Color3) | Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL. |
![]() | Saturate(Color4) | Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL. |
![]() | ToBoundingBox | Converts WPF Rect3D to BoundingBox |
![]() | ToColor3 | Converts WPF Color to SharpEngine's Color3 |
![]() | ToColor4 | Converts WPF Color to SharpEngine's Color4 |
![]() | ToMatrix | Converts WPF Matrix3D to System.Numerics.Matrix4x4 that is used in SharpEngine |
![]() | ToPremultipliedColor3(Color) | Converts WPF Color to premultipled SharpEngine's Color3 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToPremultipliedColor3(Color, Single) | Converts WPF Color to premultipled SharpEngine's Color3 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToPremultipliedColor4 | Converts WPF Color to premultipled SharpEngine's Color4 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToRect3D | Converts BoundingBox to WPF Rect3D |
![]() | ToVector3(Point3D) | Converts WPF Point3D to SharpEngine's Vector3 |
![]() | ToVector3(Vector3D) | Converts WPF Vector3D to SharpEngine's Vector3 |
![]() | ToWpfColor(Color3) | Converts SharpEngine's Color3 to WPF color |
![]() | ToWpfColor(Color4) | Converts SharpEngine's Color4 to WPF color |
![]() | ToWpfMatrix3D | Converts System.Numerics.Matrix4x4 that is used in SharpEngine to WPF Matrix3D |
![]() | ToWpfPoint3D | Converts SharpEngine's Vector3 to WPF Point3D |
![]() | ToWpfVector3D | Converts SharpEngine's Vector3 to WPF Vector3D |