Class FixedChronicleHashWriterExtensions
- Namespace
- FixedMathSharp.Chronicler
- Assembly
- FixedMathSharp.Chronicler.dll
Appends FixedMathSharp values to a deterministic Chronicler.Hashing.ChronicleHashWriter.
public static class FixedChronicleHashWriterExtensions
- Inheritance
-
FixedChronicleHashWriterExtensions
- Inherited Members
Remarks
Calls append to the caller's writer in call order. Every scalar component contributes its signed 64-bit Q32.32 payload in little-endian byte order. Keep the sequence of calls and the documented field order stable across producers of the same replay hash.
Methods
WriteBoundArea(ref ChronicleHashWriter, FixedBoundArea)
Writes a 2D bounding area by canonical minimum then maximum corners.
public static void WriteBoundArea(this ref ChronicleHashWriter writer, FixedBoundArea value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedBoundAreaThe area whose two corners are appended in its own coordinate space.
WriteBoundBox(ref ChronicleHashWriter, FixedBoundBox)
Writes a bounding box by canonical minimum then maximum corners.
public static void WriteBoundBox(this ref ChronicleHashWriter writer, FixedBoundBox value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedBoundBoxThe box whose two corners are appended in its own coordinate space.
WriteBoundCircle(ref ChronicleHashWriter, FixedBoundCircle)
Writes a 2D bounding circle as center then normalized radius.
public static void WriteBoundCircle(this ref ChronicleHashWriter writer, FixedBoundCircle value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedBoundCircleThe circle whose stored center and radius are appended.
WriteBoundSphere(ref ChronicleHashWriter, FixedBoundSphere)
Writes a bounding sphere as center then radius.
public static void WriteBoundSphere(this ref ChronicleHashWriter writer, FixedBoundSphere value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedBoundSphereThe sphere whose stored center and radius are appended.
WriteFixed3x3(ref ChronicleHashWriter, Fixed3x3)
Writes a 3x3 matrix in row-major order.
public static void WriteFixed3x3(this ref ChronicleHashWriter writer, Fixed3x3 value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixed3x3The matrix whose entries are appended as stored.
WriteFixed4x4(ref ChronicleHashWriter, Fixed4x4)
Writes a 4x4 matrix in row-major order.
public static void WriteFixed4x4(this ref ChronicleHashWriter writer, Fixed4x4 value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixed4x4The matrix whose entries are appended as stored.
WriteFixed64(ref ChronicleHashWriter, Fixed64)
Writes a fixed-point value by its raw Q32.32 payload.
public static void WriteFixed64(this ref ChronicleHashWriter writer, Fixed64 value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixed64The fixed-point value to append. All 64 raw bits are preserved.
WritePlane(ref ChronicleHashWriter, FixedPlane)
Writes a plane as normal then distance component.
public static void WritePlane(this ref ChronicleHashWriter writer, FixedPlane value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedPlaneThe plane whose stored normal and plane-equation constant are appended.
WriteQuaternion(ref ChronicleHashWriter, FixedQuaternion)
Writes a quaternion in X, Y, Z, W component order.
public static void WriteQuaternion(this ref ChronicleHashWriter writer, FixedQuaternion value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedQuaternionThe quaternion to append. Its components retain their original scale and sign.
WriteRay(ref ChronicleHashWriter, FixedRay)
Writes a ray as position then direction.
public static void WriteRay(this ref ChronicleHashWriter writer, FixedRay value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedRayThe ray whose stored origin and direction are appended.
WriteTransform(ref ChronicleHashWriter, FixedTransform)
Writes authoritative local position, local rotation, then local scale.
public static void WriteTransform(this ref ChronicleHashWriter writer, FixedTransform value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueFixedTransformThe transform whose local components are read during this call.
Remarks
Parent identity and all derived world views are intentionally excluded. Adopting this local contract is a replay/hash compatibility boundary for hashes produced by older package versions.
Exceptions
- ArgumentNullException
valueis null. The writer is unmodified.
WriteVector2d(ref ChronicleHashWriter, Vector2d)
Writes a 2D vector in X, Y component order.
public static void WriteVector2d(this ref ChronicleHashWriter writer, Vector2d value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueVector2dThe vector whose components are appended as stored.
WriteVector3d(ref ChronicleHashWriter, Vector3d)
Writes a 3D vector in X, Y, Z component order.
public static void WriteVector3d(this ref ChronicleHashWriter writer, Vector3d value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueVector3dThe vector whose components are appended as stored.
WriteVector4d(ref ChronicleHashWriter, Vector4d)
Writes a 4D vector in X, Y, Z, W component order.
public static void WriteVector4d(this ref ChronicleHashWriter writer, Vector4d value)
Parameters
writerChronicleHashWriterThe caller-owned hash writer to append to in place.
valueVector4dThe vector whose components are appended as stored.