pub trait XRRayMethods<D: DomTypes> {
    // 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§

source

fn Origin(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>

source

fn Direction(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>

source

fn Matrix(&self, cx: SafeJSContext) -> Float32Array

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, origin: &DOMPointInit, direction: &XRRayDirectionInit, ) -> Result<Root<Dom<XRRay>>, Error>

source

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.

Implementors§