Docs.rs
tea_render-0.1.1
tea_render 0.1.1
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
canoi12
Dependencies
gl ^0.14.0
normal
Versions
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Vec4
Methods
apply_matrix
cross
dot
from_array
len
normalize
zero
Trait Implementations
GlslType
In tea::vec
?
Type Alias
tea
::
vec
::
Vec4
source
·
[
−
]
pub type Vec4 =
Vector4
<
f32
>;
Implementations
§
source
§
impl
Vec4
source
pub fn
zero
() ->
Vec4
source
pub fn
from_array
(data: [
f32
;
4
]) ->
Vec4
source
pub fn
dot
(&self, rhs:
&Self
) ->
f32
source
pub fn
len
(&self) ->
f32
source
pub fn
cross
(&self, other:
&Self
) -> Self
source
pub fn
normalize
(&self) -> Self
source
pub fn
apply_matrix
(&mut self, matrix:
Mat4
)
Trait Implementations
§
source
§
impl
GlslType
for
Vec4
source
§
fn
to_glsl
() ->
String