SplatCloud class final

A fitted cloud, in the units the file stored.

Constructors

SplatCloud({required Float32List centres, required Float32List colours, required Float32List scales, required Float32List rotations})

Properties

centres → Float32List
xyz per splat, in world units.
final
colours → Float32List
Linear RGB and alpha per splat, already through the sigmoid and the spherical-harmonic constant — the file stores neither.
final
count → int
How many splats. Every array below is this long times its own stride.
final
hashCode → int
The hash code for this object.
no setterinherited
rotations → Float32List
xyzw, normalised. The file's own order is w first; this is not, so that it matches every other quaternion in this engine.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scales → Float32List
The ellipsoid's reach along its own three axes, in world units, already through the exponential the file stores it under.
final

Methods

covarianceOf(int index, Float32List out, [int at = 0]) → void
The 3×3 covariance of splat index, written into out as six floats: xx, xy, xz, yy, yz, zz.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sortedBackToFront(Vector3 eye, Vector3 forward, {Int32List? into, Float32List? depths}) → Int32List
The indices of every splat, ordered far to near along forward from eye, which is the order alpha blending has to draw them in.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited