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
vec3
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::
lib
Modules
FS
GL
char
chksum
fmt
iter
lazy
logging
mem
ops
prefetch
profiling
ptr
rand
slice
slicing
time
Macros
bitflags
impl_trait_for
Structs
Arc
BTreeMap
BTreeSet
Cached
CachedStr
Cell
Dummy
HashMap
HashSet
MemRes
Memoized
Range
Rc
TPtr
VecDeque
Weak
f16
Enums
ord
Traits
Borrow
Cast
CollectVec
CountItems
Debug
ExplainError
FasterIndex
InspectCell
LastIdx
OrAssignment
SendStat
TrivialBound
UniformUnwrap
UniformUnwrapOrDefault
UnwrapValid
Utf8Len
Functions
Box
Cell
Def
Mat2
Mat2x3
Mat2x4
Mat3
Mat3x2
Mat3x4
Mat4
Mat4x2
Mat4x3
Res
Vec2
Vec3
Vec4
dVec2
dVec3
dVec4
f16
f32
f64
hVec2
hVec3
hVec4
i128
i16
i32
i64
i8
iVec2
iVec3
iVec4
ibVec2
ibVec3
ibVec4
ilVec2
ilVec3
ilVec4
isVec2
isVec3
isVec4
isize
iter2d
iter3d
ref_UUID
type_name
type_size
u128
u16
u32
u64
u8
uVec2
uVec3
uVec4
ubVec2
ubVec3
ubVec4
ulVec2
ulVec3
ulVec4
usVec2
usVec3
usVec4
usize
Type Aliases
Astr
GLbitfield
GLbool
GLenum
GLvoid
Mat2
Mat2x3
Mat2x4
Mat3
Mat3x2
Mat3x4
Mat4
Mat4x2
Mat4x3
Res
STR
Str
Vec2
Vec3
Vec4
dVec2
dVec3
dVec4
hVec2
hVec3
hVec4
iVec2
iVec3
iVec4
ibVec2
ibVec3
ibVec4
ilVec2
ilVec3
ilVec4
isVec2
isVec3
isVec4
mat2
mat2x3
mat2x4
mat3
mat3x2
mat3x4
mat4
mat4x2
mat4x3
uVec2
uVec3
uVec4
ubVec2
ubVec3
ubVec4
ulVec2
ulVec3
ulVec4
usVec2
usVec3
usVec4
vec2
vec3
vec4
Derive Macros
Debug
grafix_toolbox
::
lib
Type Alias
vec3
Copy item path
Settings
Help
Summary
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