pub struct PointChunkPlacement { /* private fields */ }Expand description
Declarative rendering of one resident generic point chunk.
Implementations§
Source§impl PointChunkPlacement
impl PointChunkPlacement
Sourcepub fn new(
id: ChunkPlacementId,
ticket: ResidencyTicket,
model_to_world: Mat4,
diameter_pixels: f32,
color: Rgba8,
) -> Result<Self, ChunkPlacementError>
pub fn new( id: ChunkPlacementId, ticket: ResidencyTicket, model_to_world: Mat4, diameter_pixels: f32, color: Rgba8, ) -> Result<Self, ChunkPlacementError>
Creates a generic point placement without copying its payload.
§Errors
Rejects non-finite transforms or invalid point diameters.
Sourcepub const fn id(self) -> ChunkPlacementId
pub const fn id(self) -> ChunkPlacementId
Returns the stable caller-owned placement identity.
Sourcepub const fn ticket(self) -> ResidencyTicket
pub const fn ticket(self) -> ResidencyTicket
Returns the exact generic point generation to draw.
Sourcepub const fn model_to_world(self) -> Mat4
pub const fn model_to_world(self) -> Mat4
Returns the dataset-local to world-space transform.
Sourcepub const fn representation(self) -> ChunkRepresentation
pub const fn representation(self) -> ChunkRepresentation
Returns the validated point representation.
Sourcepub const fn diameter_pixels(self) -> f32
pub const fn diameter_pixels(self) -> f32
Returns the physical-pixel diameter.
Trait Implementations§
Source§impl Clone for PointChunkPlacement
impl Clone for PointChunkPlacement
impl Copy for PointChunkPlacement
Source§impl Debug for PointChunkPlacement
impl Debug for PointChunkPlacement
Source§impl PartialEq for PointChunkPlacement
impl PartialEq for PointChunkPlacement
impl StructuralPartialEq for PointChunkPlacement
Auto Trait Implementations§
impl Freeze for PointChunkPlacement
impl RefUnwindSafe for PointChunkPlacement
impl Send for PointChunkPlacement
impl Sync for PointChunkPlacement
impl Unpin for PointChunkPlacement
impl UnsafeUnpin for PointChunkPlacement
impl UnwindSafe for PointChunkPlacement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more