Class FloatHeightStickArraySource
[DataContract]
[Display("Float", null)]
public class FloatHeightStickArraySource : IHeightStickArraySource, IHeightStickParameters
- Inheritance
-
FloatHeightStickArraySource
- Implements
Properties
HeightRange
The range of the height.
[DataMember(20)]
public Vector2 HeightRange { get; set; }
Property Value
Remarks
X is min height and Y is max height. (height * HeightScale) should be in this range. Positive and negative heights can not be handle at the same time when the height type is Byte.
HeightScale
Used to calculate the height when the height type is Short or Byte. HeightScale should be 1 when the height type is Float.
public float HeightScale { get; }
Property Value
HeightStickSize
The size of the source.
[DataMember(10)]
[Display("Size", null)]
public Int2 HeightStickSize { get; set; }
Property Value
Remarks
X is width and Y is length. They should be greater than or equal to 2. For example, this size should be 65 * 65 when you want 64 * 64 size in a scene.
HeightType
The type of the height.
public HeightfieldTypes HeightType { get; }
Property Value
InitialHeight
The value to fill the height stick array.
[DataMember(30)]
public float InitialHeight { get; set; }
Property Value
Methods
CopyTo<T>(UnmanagedArray<T>, int)
Copy the source data to the height stick array.
public void CopyTo<T>(UnmanagedArray<T> heightStickArray, int index) where T : struct
Parameters
heightStickArray
UnmanagedArray<T>The destination to copy the data.
index
intThe start index of the destination to copy the data.
Type Parameters
T
The data type of the height
IsValid()
public bool IsValid()
Returns
Match(object)
public bool Match(object obj)
Parameters
obj
object