pub struct FieldRef { /* private fields */ }Expand description
A reference to a signed distance field that you can sample
Implementations§
Source§impl FieldRef
impl FieldRef
pub async fn import(client: &Arc<ClientHandle>, uid: u64) -> NodeResult<Self>
Source§impl FieldRef
impl FieldRef
pub fn as_spatial_ref(self) -> SpatialRef
Trait Implementations§
Source§impl FieldRefAspect for FieldRef
impl FieldRefAspect for FieldRef
Source§async fn distance(
&self,
space: &impl SpatialRefAspect,
point: impl Into<Vector3<f32>>,
) -> NodeResult<f32>
async fn distance( &self, space: &impl SpatialRefAspect, point: impl Into<Vector3<f32>>, ) -> NodeResult<f32>
Get the distance to the surface of this field relative to the
point in spaceSource§async fn normal(
&self,
space: &impl SpatialRefAspect,
point: impl Into<Vector3<f32>>,
) -> NodeResult<Vector3<f32>>
async fn normal( &self, space: &impl SpatialRefAspect, point: impl Into<Vector3<f32>>, ) -> NodeResult<Vector3<f32>>
Get a vector pointing away from surface of this field relative to the
point in spaceSource§async fn closest_point(
&self,
space: &impl SpatialRefAspect,
point: impl Into<Vector3<f32>>,
) -> NodeResult<Vector3<f32>>
async fn closest_point( &self, space: &impl SpatialRefAspect, point: impl Into<Vector3<f32>>, ) -> NodeResult<Vector3<f32>>
Get the closest point on the surface of this field relative to the
point in spaceSource§async fn ray_march(
&self,
space: &impl SpatialRefAspect,
ray_origin: impl Into<Vector3<f32>>,
ray_direction: impl Into<Vector3<f32>>,
) -> NodeResult<RayMarchResult>
async fn ray_march( &self, space: &impl SpatialRefAspect, ray_origin: impl Into<Vector3<f32>>, ray_direction: impl Into<Vector3<f32>>, ) -> NodeResult<RayMarchResult>
Get information from the server raymarching the given ray in
space through this field such as steps, closest/deepest distance, etc.Source§impl NodeType for FieldRef
impl NodeType for FieldRef
Source§impl<Ctx: ClientQueryContext> Queryable<Ctx> for FieldRef
impl<Ctx: ClientQueryContext> Queryable<Ctx> for FieldRef
async fn try_new( connection: &Connection, ctx: &Arc<Ctx>, object: &ObjectInfo, contains_interface: &(impl Fn(&InterfaceName<'_>) -> bool + Send + Sync), ) -> Option<Self>
Source§impl SpatialRefAspect for FieldRef
impl SpatialRefAspect for FieldRef
Source§async fn get_local_bounding_box(&self) -> NodeResult<BoundingBox>
async fn get_local_bounding_box(&self) -> NodeResult<BoundingBox>
Get the bounding box of this spatial and its children relative to another spatial
Source§async fn get_relative_bounding_box(
&self,
relative_to: &impl SpatialRefAspect,
) -> NodeResult<BoundingBox>
async fn get_relative_bounding_box( &self, relative_to: &impl SpatialRefAspect, ) -> NodeResult<BoundingBox>
Get the bounding box of this spatial and its children relative to itself
Source§async fn get_transform(
&self,
relative_to: &impl SpatialRefAspect,
) -> NodeResult<Transform>
async fn get_transform( &self, relative_to: &impl SpatialRefAspect, ) -> NodeResult<Transform>
Get the transform relative to some other spatial node.
impl Eq for FieldRef
Auto Trait Implementations§
impl Freeze for FieldRef
impl !RefUnwindSafe for FieldRef
impl Send for FieldRef
impl Sync for FieldRef
impl Unpin for FieldRef
impl !UnwindSafe for FieldRef
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