pub struct Frustum10D {
pub min: [f32; 10],
pub max: [f32; 10],
pub max_metric_radius: f32,
pub topology_class: TopologyClass,
}Expand description
10-dimensional axis-aligned bounding frustum and step-metric gate over Tensor10D
([q, v, w, x, y, z, t, α, μ, σ]).
Fields§
§min: [f32; 10]§max: [f32; 10]§max_metric_radius: f32§topology_class: TopologyClassImplementations§
Source§impl Frustum10D
impl Frustum10D
Sourcepub const fn full_range(
max_metric_radius: f32,
topology_class: TopologyClass,
) -> Self
pub const fn full_range( max_metric_radius: f32, topology_class: TopologyClass, ) -> Self
Construct an unbounded 10D frustum gated only by max_metric_radius and topology_class.
Sourcepub fn contains_tensor(&self, t: &Tensor10D) -> bool
pub fn contains_tensor(&self, t: &Tensor10D) -> bool
Returns true when all 10 axes [q, v, w, x, y, z, t, α, μ, σ] of t
lie within [self.min[i], self.max[i]].
Trait Implementations§
Source§impl Clone for Frustum10D
impl Clone for Frustum10D
impl Copy for Frustum10D
Source§impl Debug for Frustum10D
impl Debug for Frustum10D
Source§impl Default for Frustum10D
impl Default for Frustum10D
Source§impl PartialEq for Frustum10D
impl PartialEq for Frustum10D
impl StructuralPartialEq for Frustum10D
Auto Trait Implementations§
impl Freeze for Frustum10D
impl RefUnwindSafe for Frustum10D
impl Send for Frustum10D
impl Sync for Frustum10D
impl Unpin for Frustum10D
impl UnsafeUnpin for Frustum10D
impl UnwindSafe for Frustum10D
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.