Table of Contents

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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedBoundArea

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedBoundBox

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedBoundCircle

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedBoundSphere

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Fixed3x3

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Fixed4x4

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Fixed64

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedPlane

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedQuaternion

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedRay

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value FixedTransform

The 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

value is 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Vector2d

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Vector3d

The 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

writer ChronicleHashWriter

The caller-owned hash writer to append to in place.

value Vector4d

The vector whose components are appended as stored.