Class McnrEntry
A terrain vertex normal (MCNR entry, 3 signed bytes): the X, Z, Y components, 127 == 1.0. One per MCVT height vertex (9x9 + 8x8 = 145).
public class McnrEntry : IDisposable
- Inheritance
-
McnrEntry
- Implements
- Inherited Members
Constructors
McnrEntry()
public McnrEntry()
McnrEntry(sbyte[])
public McnrEntry(sbyte[] normal)
Parameters
normalsbyte[]
McnrEntry(McnrEntry)
Copy-construct: a deep copy of other (the C++ copy constructor).
public McnrEntry(McnrEntry other)
Parameters
otherMcnrEntry
Properties
Normal
The normal components, plain X, Y, Z order; 127 == 1.0, -127 == -1.0. (The often-quoted X, Z, Y layout is wrong: verified empirically against MCVT-derived gradients, wrender 2026-08.)
public FixedArray<sbyte> Normal { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(McnrEntry?, McnrEntry?)
public static bool operator ==(McnrEntry? l, McnrEntry? r)
Parameters
Returns
operator !=(McnrEntry?, McnrEntry?)
public static bool operator !=(McnrEntry? l, McnrEntry? r)