Struct raylib::core::math::Vector3 [−][src]
Fields
x: f32
y: f32
z: f32
Implementations
Returns a new Vector3
with specified components.
Returns a new Vector3
containing the cross product between self
and vector v
.
Returns a new Vector3
perpendicular to self
.
Calculates the distance towards vector v
.
Returns a new Vector3
with components scaled by scale
.
Returns a new Vector3
with normalized components from the current vector.
Normalizes and changes both self
and v
to be orthogonal to eachother.
Returns a new Vector3
containing components transformed by Matrix mat
.
Rotates the current vector using Quaternion q
.
Returns a new Vector3
with components rotated by Quaternion q
.
Returns a new Vector3
with componenets linearly interpolated by amount
towards vector v
.
Returns a new Vector3
reflected from the current vector using normal
.
Returns a new Vector3
containing the minimum of each corresponding component.
Returns a new Vector3
containing the maximum of each corresponding component.
Returns barycenter coordinates (u, v, w) from point p (current vector) with respect to triangle (a
, b
, c
).
Returns a 3-length f32
array containing components [x, y, z]
of the current vector.
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Vector3
impl UnwindSafe for Vector3
Blanket Implementations
Mutably borrows from an owned value. Read more