Docs.rs
grafix-toolbox-0.8.31
grafix-toolbox 0.8.31
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
installgentoo
Dependencies
bincode ^1
normal
optional
bitflags ^2
normal
fastrand ^2
normal
optional
futures-lite ^2
normal
gl ^0.14
normal
glfw ^0.58
normal
half ^2
normal
image ^0.25
normal
nalgebra ^0.33
normal
notify ^7
normal
optional
rusttype ^0.9
normal
optional
serde ^1
normal
optional
serde_json ^1
normal
optional
tobj ^4
normal
optional
tokio ^1
normal
yansi ^1
normal
zstd ^0.13
normal
optional
Versions
2.01%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
grafix_
toolbox
0.8.31
vec3
Trait Implementations
Cast<&[T]>
Cast<(T, T, T, T)>
Cast<Matrix<f16, Const<3>, Const<1>, ArrayStorage<f16, 3, 1>>>
Cast<Matrix<f32, Const<3>, Const<1>, ArrayStorage<f32, 3, 1>>>
Cast<Matrix<f64, Const<3>, Const<1>, ArrayStorage<f64, 3, 1>>>
Cast<Matrix<i8, Const<3>, Const<1>, ArrayStorage<i8, 3, 1>>>
Cast<Matrix<i16, Const<3>, Const<1>, ArrayStorage<i16, 3, 1>>>
Cast<Matrix<i32, Const<3>, Const<1>, ArrayStorage<i32, 3, 1>>>
Cast<Matrix<i64, Const<3>, Const<1>, ArrayStorage<i64, 3, 1>>>
Cast<Matrix<i128, Const<3>, Const<1>, ArrayStorage<i128, 3, 1>>>
Cast<Matrix<u8, Const<3>, Const<1>, ArrayStorage<u8, 3, 1>>>
Cast<Matrix<u16, Const<3>, Const<1>, ArrayStorage<u16, 3, 1>>>
Cast<Matrix<u32, Const<3>, Const<1>, ArrayStorage<u32, 3, 1>>>
Cast<Matrix<u64, Const<3>, Const<1>, ArrayStorage<u64, 3, 1>>>
Cast<Matrix<u128, Const<3>, Const<1>, ArrayStorage<u128, 3, 1>>>
Cast<OPoint<f16, Const<3>>>
Cast<OPoint<f32, Const<3>>>
Cast<OPoint<f64, Const<3>>>
Cast<OPoint<i8, Const<3>>>
Cast<OPoint<i16, Const<3>>>
Cast<OPoint<i32, Const<3>>>
Cast<OPoint<i64, Const<3>>>
Cast<OPoint<i128, Const<3>>>
Cast<OPoint<u8, Const<3>>>
Cast<OPoint<u16, Const<3>>>
Cast<OPoint<u32, Const<3>>>
Cast<OPoint<u64, Const<3>>>
Cast<OPoint<u128, Const<3>>>
Cast<[f16; 3]>
Cast<[f32; 3]>
Cast<[f64; 3]>
Cast<[i8; 3]>
Cast<[i16; 3]>
Cast<[i32; 3]>
Cast<[i64; 3]>
Cast<[i128; 3]>
Cast<[u8; 3]>
Cast<[u16; 3]>
Cast<[u32; 3]>
Cast<[u64; 3]>
Cast<[u128; 3]>
FlattenCast<T>
FlattenCastMat<N>
TupleIdentity
In grafix_
toolbox::
math
grafix_toolbox
::
math
Type Alias
vec3
Copy item path
Source
pub type vec3<T> =
(T, T, T)
;
Trait Implementations
§
Source
§
impl<T:
Copy
>
Cast
<&
[T]
> for
vec3
<T>
Source
§
fn
to
(v: &
[T]
) -> Self
Source
§
impl
Cast
<[
f16
;
3
]> for
vec3
<
f16
>
Source
§
fn
to
(v: [
f16
;
3
]) -> Self
Source
§
impl
Cast
<[
f32
;
3
]> for
vec3
<
f32
>
Source
§
fn
to
(v: [
f32
;
3
]) -> Self
Source
§
impl
Cast
<[
f64
;
3
]> for
vec3
<
f64
>
Source
§
fn
to
(v: [
f64
;
3
]) -> Self
Source
§
impl
Cast
<[
i128
;
3
]> for
vec3
<
i128
>
Source
§
fn
to
(v: [
i128
;
3
]) -> Self
Source
§
impl
Cast
<[
i16
;
3
]> for
vec3
<
i16
>
Source
§
fn
to
(v: [
i16
;
3
]) -> Self
Source
§
impl
Cast
<[
i32
;
3
]> for
vec3
<
i32
>
Source
§
fn
to
(v: [
i32
;
3
]) -> Self
Source
§
impl
Cast
<[
i64
;
3
]> for
vec3
<
i64
>
Source
§
fn
to
(v: [
i64
;
3
]) -> Self
Source
§
impl
Cast
<[
i8
;
3
]> for
vec3
<
i8
>
Source
§
fn
to
(v: [
i8
;
3
]) -> Self
Source
§
impl
Cast
<[
u128
;
3
]> for
vec3
<
u128
>
Source
§
fn
to
(v: [
u128
;
3
]) -> Self
Source
§
impl
Cast
<[
u16
;
3
]> for
vec3
<
u16
>
Source
§
fn
to
(v: [
u16
;
3
]) -> Self
Source
§
impl
Cast
<[
u32
;
3
]> for
vec3
<
u32
>
Source
§
fn
to
(v: [
u32
;
3
]) -> Self
Source
§
impl
Cast
<[
u64
;
3
]> for
vec3
<
u64
>
Source
§
fn
to
(v: [
u64
;
3
]) -> Self
Source
§
impl
Cast
<[
u8
;
3
]> for
vec3
<
u8
>
Source
§
fn
to
(v: [
u8
;
3
]) -> Self
Source
§
impl<T:
Copy
>
Cast
<
(T, T, T, T)
> for
vec3
<T>
Source
§
fn
to
((v1, v2, v3, _):
vec4
<T>) -> Self
Source
§
impl
Cast
<
Matrix
<
f16
,
Const
<3>,
Const
<1>,
ArrayStorage
<
f16
, 3, 1>>> for
vec3
<
f16
>
Source
§
fn
to
(v:
Vector3
<
f16
>) -> Self
Source
§
impl
Cast
<
Matrix
<
f32
,
Const
<3>,
Const
<1>,
ArrayStorage
<
f32
, 3, 1>>> for
vec3
<
f32
>
Source
§
fn
to
(v:
Vector3
<
f32
>) -> Self
Source
§
impl
Cast
<
Matrix
<
f64
,
Const
<3>,
Const
<1>,
ArrayStorage
<
f64
, 3, 1>>> for
vec3
<
f64
>
Source
§
fn
to
(v:
Vector3
<
f64
>) -> Self
Source
§
impl
Cast
<
Matrix
<
i128
,
Const
<3>,
Const
<1>,
ArrayStorage
<
i128
, 3, 1>>> for
vec3
<
i128
>
Source
§
fn
to
(v:
Vector3
<
i128
>) -> Self
Source
§
impl
Cast
<
Matrix
<
i16
,
Const
<3>,
Const
<1>,
ArrayStorage
<
i16
, 3, 1>>> for
vec3
<
i16
>
Source
§
fn
to
(v:
Vector3
<
i16
>) -> Self
Source
§
impl
Cast
<
Matrix
<
i32
,
Const
<3>,
Const
<1>,
ArrayStorage
<
i32
, 3, 1>>> for
vec3
<
i32
>
Source
§
fn
to
(v:
Vector3
<
i32
>) -> Self
Source
§
impl
Cast
<
Matrix
<
i64
,
Const
<3>,
Const
<1>,
ArrayStorage
<
i64
, 3, 1>>> for
vec3
<
i64
>
Source
§
fn
to
(v:
Vector3
<
i64
>) -> Self
Source
§
impl
Cast
<
Matrix
<
i8
,
Const
<3>,
Const
<1>,
ArrayStorage
<
i8
, 3, 1>>> for
vec3
<
i8
>
Source
§
fn
to
(v:
Vector3
<
i8
>) -> Self
Source
§
impl
Cast
<
Matrix
<
u128
,
Const
<3>,
Const
<1>,
ArrayStorage
<
u128
, 3, 1>>> for
vec3
<
u128
>
Source
§
fn
to
(v:
Vector3
<
u128
>) -> Self
Source
§
impl
Cast
<
Matrix
<
u16
,
Const
<3>,
Const
<1>,
ArrayStorage
<
u16
, 3, 1>>> for
vec3
<
u16
>
Source
§
fn
to
(v:
Vector3
<
u16
>) -> Self
Source
§
impl
Cast
<
Matrix
<
u32
,
Const
<3>,
Const
<1>,
ArrayStorage
<
u32
, 3, 1>>> for
vec3
<
u32
>
Source
§
fn
to
(v:
Vector3
<
u32
>) -> Self
Source
§
impl
Cast
<
Matrix
<
u64
,
Const
<3>,
Const
<1>,
ArrayStorage
<
u64
, 3, 1>>> for
vec3
<
u64
>
Source
§
fn
to
(v:
Vector3
<
u64
>) -> Self
Source
§
impl
Cast
<
Matrix
<
u8
,
Const
<3>,
Const
<1>,
ArrayStorage
<
u8
, 3, 1>>> for
vec3
<
u8
>
Source
§
fn
to
(v:
Vector3
<
u8
>) -> Self
Source
§
impl
Cast
<
OPoint
<
f16
,
Const
<3>>> for
vec3
<
f16
>
Source
§
fn
to
(v:
Point3
<
f16
>) -> Self
Source
§
impl
Cast
<
OPoint
<
f32
,
Const
<3>>> for
vec3
<
f32
>
Source
§
fn
to
(v:
Point3
<
f32
>) -> Self
Source
§
impl
Cast
<
OPoint
<
f64
,
Const
<3>>> for
vec3
<
f64
>
Source
§
fn
to
(v:
Point3
<
f64
>) -> Self
Source
§
impl
Cast
<
OPoint
<
i128
,
Const
<3>>> for
vec3
<
i128
>
Source
§
fn
to
(v:
Point3
<
i128
>) -> Self
Source
§
impl
Cast
<
OPoint
<
i16
,
Const
<3>>> for
vec3
<
i16
>
Source
§
fn
to
(v:
Point3
<
i16
>) -> Self
Source
§
impl
Cast
<
OPoint
<
i32
,
Const
<3>>> for
vec3
<
i32
>
Source
§
fn
to
(v:
Point3
<
i32
>) -> Self
Source
§
impl
Cast
<
OPoint
<
i64
,
Const
<3>>> for
vec3
<
i64
>
Source
§
fn
to
(v:
Point3
<
i64
>) -> Self
Source
§
impl
Cast
<
OPoint
<
i8
,
Const
<3>>> for
vec3
<
i8
>
Source
§
fn
to
(v:
Point3
<
i8
>) -> Self
Source
§
impl
Cast
<
OPoint
<
u128
,
Const
<3>>> for
vec3
<
u128
>
Source
§
fn
to
(v:
Point3
<
u128
>) -> Self
Source
§
impl
Cast
<
OPoint
<
u16
,
Const
<3>>> for
vec3
<
u16
>
Source
§
fn
to
(v:
Point3
<
u16
>) -> Self
Source
§
impl
Cast
<
OPoint
<
u32
,
Const
<3>>> for
vec3
<
u32
>
Source
§
fn
to
(v:
Point3
<
u32
>) -> Self
Source
§
impl
Cast
<
OPoint
<
u64
,
Const
<3>>> for
vec3
<
u64
>
Source
§
fn
to
(v:
Point3
<
u64
>) -> Self
Source
§
impl
Cast
<
OPoint
<
u8
,
Const
<3>>> for
vec3
<
u8
>
Source
§
fn
to
(v:
Point3
<
u8
>) -> Self
Source
§
impl<T:
Copy
>
FlattenCast
<T> for
vec3
<T>
Source
§
fn
flatten
(self) ->
Vec
<T>
Source
§
impl<N:
Copy
, T:
FlattenCast
<N>>
FlattenCastMat
<N> for
vec3
<T>
Source
§
fn
flatten_all
(self) ->
Vec
<N>
Source
§
impl<T: ToZero>
TupleIdentity
for
vec3
<T>
Source
§
fn
one
() -> Self
Source
§
fn
zero
() -> Self