pub struct WasmMat4f32(/* private fields */);
Implementations§
Source§impl WasmMat4f32
impl WasmMat4f32
pub fn identity() -> WasmMat4f32
pub fn from_array(f: &[f32]) -> WasmMat4f32
pub fn is_zero(&self) -> bool
pub fn determinant(&self) -> f32
pub fn add(&self, other: &WasmMat4f32) -> WasmMat4f32
pub fn sub(&self, other: &WasmMat4f32) -> WasmMat4f32
pub fn mul(&self, other: &WasmMat4f32) -> WasmMat4f32
pub fn mulf(&self, f: f32) -> WasmMat4f32
pub fn divf(&self, f: f32) -> WasmMat4f32
pub fn transpose(&self) -> WasmMat4f32
pub fn inverse(&self) -> WasmMat4f32
pub fn transform(&self, v: &WasmVec4f32) -> WasmVec4f32
Source§impl WasmMat4f32
impl WasmMat4f32
pub fn perspective(fov: f32, aspect: f32, near: f32, far: f32) -> WasmMat4f32
pub fn look_at( eye: &WasmVec3f32, center: &WasmVec3f32, up: &WasmVec3f32, ) -> WasmMat4f32
pub fn array(&self) -> Box<[f32]>
pub fn translate3(&mut self, by: &WasmVec3f32)
pub fn translate4(&mut self, by: &WasmVec4f32)
Trait Implementations§
Source§impl From<&WasmMat4f32> for Mat4f32
impl From<&WasmMat4f32> for Mat4f32
Source§fn from(f: &WasmMat4f32) -> Mat4f32
fn from(f: &WasmMat4f32) -> Mat4f32
Converts to this type from the input type.
Source§impl From<FArray2<f32, 4, 16>> for WasmMat4f32
impl From<FArray2<f32, 4, 16>> for WasmMat4f32
Source§fn from(f: Mat4f32) -> WasmMat4f32
fn from(f: Mat4f32) -> WasmMat4f32
Converts to this type from the input type.
Source§impl From<WasmMat4f32> for Mat4f32
impl From<WasmMat4f32> for Mat4f32
Source§fn from(f: WasmMat4f32) -> Mat4f32
fn from(f: WasmMat4f32) -> Mat4f32
Converts to this type from the input type.
Source§impl From<WasmMat4f32> for JsValue
impl From<WasmMat4f32> for JsValue
Source§fn from(value: WasmMat4f32) -> Self
fn from(value: WasmMat4f32) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmMat4f32
impl FromWasmAbi for WasmMat4f32
Source§impl IntoWasmAbi for WasmMat4f32
impl IntoWasmAbi for WasmMat4f32
Source§impl LongRefFromWasmAbi for WasmMat4f32
impl LongRefFromWasmAbi for WasmMat4f32
Source§impl OptionFromWasmAbi for WasmMat4f32
impl OptionFromWasmAbi for WasmMat4f32
Source§impl OptionIntoWasmAbi for WasmMat4f32
impl OptionIntoWasmAbi for WasmMat4f32
Source§impl RefFromWasmAbi for WasmMat4f32
impl RefFromWasmAbi for WasmMat4f32
Source§type Anchor = RcRef<WasmMat4f32>
type Anchor = RcRef<WasmMat4f32>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasmMat4f32
impl RefMutFromWasmAbi for WasmMat4f32
Source§impl TryFromJsValue for WasmMat4f32
impl TryFromJsValue for WasmMat4f32
Source§impl VectorFromWasmAbi for WasmMat4f32
impl VectorFromWasmAbi for WasmMat4f32
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmMat4f32]>
Source§impl VectorIntoJsValue for WasmMat4f32
impl VectorIntoJsValue for WasmMat4f32
fn vector_into_jsvalue(vector: Box<[WasmMat4f32]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmMat4f32
impl VectorIntoWasmAbi for WasmMat4f32
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmMat4f32]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmMat4f32
impl WasmDescribeVector for WasmMat4f32
impl SupportsConstructor for WasmMat4f32
impl SupportsInstanceProperty for WasmMat4f32
impl SupportsStaticProperty for WasmMat4f32
Auto Trait Implementations§
impl Freeze for WasmMat4f32
impl RefUnwindSafe for WasmMat4f32
impl Send for WasmMat4f32
impl Sync for WasmMat4f32
impl Unpin for WasmMat4f32
impl UnwindSafe for WasmMat4f32
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.