The Heightmap type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Heightmap |
Pass in an array of heights, and the axis that represents up
Also the centre of the heightmap (assuming z is up), and the grid size
|
Methods
Name | Description | |
---|---|---|
![]() | Clone |
Clone
(Overrides Primitive..::..Clone()()()().) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetBoundingBox()()()() |
Returns a bounding box that covers this primitive. Default returns a huge box, so
implement this in the derived class for efficiency
(Inherited from Primitive.) |
![]() | GetBoundingBox(AABox%) |
GetBoundingBox
(Overrides Primitive..::..GetBoundingBox(AABox%).) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetHeight(Vector3) |
GetHeight
|
![]() | GetHeight(Int32, Int32) |
Get the height at a particular index, indices are clamped
|
![]() | GetHeightAndNormal(Single%, Vector3%, Vector3) |
GetHeightAndNormal
|
![]() | GetHeightAndNormal(Single%, Vector3%, Int32, Int32) |
Get height and normal (quicker than calling both)
|
![]() | GetMassProperties |
GetMassProperties
(Overrides Primitive..::..GetMassProperties(PrimitiveProperties, Single%, Vector3%, Matrix%).) |
![]() | GetNormal(Vector3) |
GetNormal
|
![]() | GetNormal(Int32, Int32) |
Get the normal
|
![]() | GetSurfaceArea |
GetSurfaceArea
(Overrides Primitive..::..GetSurfaceArea()()()().) |
![]() | GetSurfacePos(Vector3%, Vector3) |
GetSurfacePos
|
![]() | GetSurfacePos(Vector3%, Int32, Int32) |
GetSurfacePos
|
![]() | GetSurfacePosAndNormal(Vector3%, Vector3%, Vector3) |
GetSurfacePosAndNormal
|
![]() | GetSurfacePosAndNormal(Vector3%, Vector3%, Int32, Int32) |
GetSurfacePosAndNormal
|
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | GetVolume |
GetVolume
(Overrides Primitive..::..GetVolume()()()().) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | RecalculateBoundingBox |
Call this after changing heights. So the bounding
box for collision detection gets recalculated.
|
![]() | SegmentIntersect |
SegmentIntersect
(Overrides Primitive..::..SegmentIntersect(Single%, Vector3%, Vector3%, Segment).) |
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | Heights |
Get mHeights
|
![]() | InverseTransformMatrix |
Gets invert transform matrix
(Inherited from Primitive.) |
![]() | Max |
Get new Vector3
|
![]() | Min |
Get new Vector3
|
![]() | Transform |
Gets Transform.Identity
(Overrides Primitive..::..Transform.) |
![]() | TransformMatrix |
Gets transform matrix
(Inherited from Primitive.) |
![]() | Type |
Gets type
(Inherited from Primitive.) |