Class HeightmapUtils  
  
  
    - Namespace
- Stride.Physics
- Assembly
- Stride.Physics.dll
 
  
  
  
    public class HeightmapUtils
   
  
    - Inheritance
- 
      object HeightmapUtils 
Methods
  
  
  CheckHeightParameters(Int2, HeightfieldTypes, Vector2, float, bool)
  
  
  
  
  
    public static bool CheckHeightParameters(Int2 size, HeightfieldTypes heightType, Vector2 heightRange, float heightScale, bool throwExceptionWhenInvalid)
   
  Parameters
  
    - sizeInt2
- heightTypeHeightfieldTypes
- heightRangeVector2
- heightScalefloat
- throwExceptionWhenInvalidbool
Returns
  
    - bool
  ConvertToByteHeight(float, float, float)
  
  
  
  
  
    public static byte ConvertToByteHeight(float minValue, float maxValue, float value)
   
  Parameters
  
    - minValuefloat
- maxValuefloat
- valuefloat
Returns
  
    - byte
  ConvertToByteHeights(short[], short, short)
  
  
  
  
  
    public static byte[] ConvertToByteHeights(short[] values, short minValue = -32768, short maxValue = 32767)
   
  Parameters
  
    - valuesshort[]
- minValueshort
- maxValueshort
Returns
  
    - byte[]
  ConvertToByteHeights(float[], float, float)
  
  
  
  
  
    public static byte[] ConvertToByteHeights(float[] values, float minValue, float maxValue)
   
  Parameters
  
    - valuesfloat[]
- minValuefloat
- maxValuefloat
Returns
  
    - byte[]
  ConvertToFloatHeight(float, float, float)
  
  
  
  
  
    public static float ConvertToFloatHeight(float minValue, float maxValue, float value)
   
  Parameters
  
    - minValuefloat
- maxValuefloat
- valuefloat
Returns
  
    - float
  ConvertToFloatHeights(byte[], byte, byte)
  
  
  
  
  
    public static float[] ConvertToFloatHeights(byte[] values, byte minValue = 0, byte maxValue = 255)
   
  Parameters
  
    - valuesbyte[]
- minValuebyte
- maxValuebyte
Returns
  
    - float[]
  ConvertToFloatHeights(short[], short, short)
  
  
  
  
  
    public static float[] ConvertToFloatHeights(short[] values, short minValue = -32768, short maxValue = 32767)
   
  Parameters
  
    - valuesshort[]
- minValueshort
- maxValueshort
Returns
  
    - float[]
  ConvertToFloatHeights(float[], float, float)
  
  
  
  
  
    public static float[] ConvertToFloatHeights(float[] values, float minValue, float maxValue)
   
  Parameters
  
    - valuesfloat[]
- minValuefloat
- maxValuefloat
Returns
  
    - float[]
  ConvertToShortHeight(float, float, float)
  
  
  
  
  
    public static short ConvertToShortHeight(float minValue, float maxValue, float value)
   
  Parameters
  
    - minValuefloat
- maxValuefloat
- valuefloat
Returns
  
    - short
  ConvertToShortHeights(byte[], byte, byte)
  
  
  
  
  
    public static short[] ConvertToShortHeights(byte[] values, byte minValue = 0, byte maxValue = 255)
   
  Parameters
  
    - valuesbyte[]
- minValuebyte
- maxValuebyte
Returns
  
    - short[]
  ConvertToShortHeights(short[], short, short)
  
  
  
  
  
    public static short[] ConvertToShortHeights(short[] values, short minValue = -32768, short maxValue = 32767)
   
  Parameters
  
    - valuesshort[]
- minValueshort
- maxValueshort
Returns
  
    - short[]
  ConvertToShortHeights(float[], float, float)
  
  
  
  
  
    public static short[] ConvertToShortHeights(float[] values, float minValue, float maxValue)
   
  Parameters
  
    - valuesfloat[]
- minValuefloat
- maxValuefloat
Returns
  
    - short[]
  Resize<T>(T[], Int2, Int2)
  
  
  
  
  
    public static T[] Resize<T>(T[] pixels, Int2 originalSize, Int2 newSize)
   
  Parameters
  
    - pixelsT[]
- originalSizeInt2
- newSizeInt2
Returns
  
    - T[]
Type Parameters
  
    - T