Trait script::dom::bindings::codegen::Bindings::XRRigidTransformBinding::XRRigidTransform_Binding::XRRigidTransformMethods
source · pub trait XRRigidTransformMethods<D: DomTypes> {
// Required methods
fn Position(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>;
fn Orientation(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>;
fn Matrix(&self, cx: SafeJSContext) -> Float32Array;
fn Inverse(&self, _can_gc: CanGc) -> Root<Dom<XRRigidTransform>>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
position: &DOMPointInit,
orientation: &DOMPointInit,
) -> Result<Root<Dom<XRRigidTransform>>, Error>;
}
Required Methods§
fn Position(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>
fn Orientation(&self, _can_gc: CanGc) -> Root<Dom<DOMPointReadOnly>>
fn Matrix(&self, cx: SafeJSContext) -> Float32Array
fn Inverse(&self, _can_gc: CanGc) -> Root<Dom<XRRigidTransform>>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, position: &DOMPointInit, orientation: &DOMPointInit, ) -> Result<Root<Dom<XRRigidTransform>>, Error>
Object Safety§
This trait is not object safe.