Trait script::dom::bindings::codegen::Bindings::XRRayBinding::XRRay_Binding::XRRayMethods
source · pub trait XRRayMethods {
// Required methods
fn Origin(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>;
fn Direction(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>;
fn Matrix(&self, cx: SafeJSContext) -> Float32Array;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
origin: &DOMPointInit,
direction: &XRRayDirectionInit,
) -> Result<Root<Dom<XRRay>>, Error>;
fn Constructor_(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
transform: &XRRigidTransform,
) -> Result<Root<Dom<XRRay>>, Error>;
}
Required Methods§
fn Origin(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>
fn Direction(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>
fn Matrix(&self, cx: SafeJSContext) -> Float32Array
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, origin: &DOMPointInit, direction: &XRRayDirectionInit, ) -> Result<Root<Dom<XRRay>>, Error>
fn Constructor_( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, transform: &XRRigidTransform, ) -> Result<Root<Dom<XRRay>>, Error>
Object Safety§
This trait is not object safe.