Struct FrustumWedge
pub struct FrustumWedge {
pub node_index: u32,
pub theta_center_rad: f32,
pub theta_extent_rad: f32,
pub phi_center_rad: f32,
pub phi_extent_rad: f32,
pub edge_blend_overlap: f32,
}Expand description
Conical solid-angle wedge assigned to an individual projector or display node.
Fields§
§node_index: u32Unique index of this display node in the cluster [0..N-1]
theta_center_rad: f32Center azimuth angle θ in radians [-π..π]
theta_extent_rad: f32Azimuth angular spread Δθ in radians
phi_center_rad: f32Center elevation angle φ in radians [0..π/2] (0 = horizon, π/2 = zenith)
phi_extent_rad: f32Elevation angular spread Δφ in radians
edge_blend_overlap: f32Projector optical edge-blend margin ratio (e.g. 0.08 = 8% overlap)
Implementations§
§impl FrustumWedge
impl FrustumWedge
pub fn generate_dome_cluster(node_count: u32) -> Vec<FrustumWedge>
pub fn generate_dome_cluster(node_count: u32) -> Vec<FrustumWedge>
Generates a full-dome cluster decomposition for N display nodes. Distributes nodes across elevation rings according to solid angle area.
pub fn contains_ray(&self, ray: [f32; 3]) -> bool
pub fn contains_ray(&self, ray: [f32; 3]) -> bool
Evaluates whether a given 3D unit ray from the dome center falls within this wedge.
Trait Implementations§
§impl Clone for FrustumWedge
impl Clone for FrustumWedge
§fn clone(&self) -> FrustumWedge
fn clone(&self) -> FrustumWedge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrustumWedge
§impl Debug for FrustumWedge
impl Debug for FrustumWedge
§impl<'de> Deserialize<'de> for FrustumWedge
impl<'de> Deserialize<'de> for FrustumWedge
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrustumWedge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrustumWedge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for FrustumWedge
impl PartialEq for FrustumWedge
§impl Serialize for FrustumWedge
impl Serialize for FrustumWedge
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FrustumWedge
Auto Trait Implementations§
impl Freeze for FrustumWedge
impl RefUnwindSafe for FrustumWedge
impl Send for FrustumWedge
impl Sync for FrustumWedge
impl Unpin for FrustumWedge
impl UnsafeUnpin for FrustumWedge
impl UnwindSafe for FrustumWedge
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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