[−][src]Struct smth::Vec3
Fields
x: S
y: S
z: S
Implementations
impl<S> Vec3<S>
[src]
impl<S: Scalar> Vec3<S>
[src]
pub fn of(v: S) -> Self
[src]
pub fn min(self, other: Self) -> Self
[src]
pub fn max(self, other: Self) -> Self
[src]
pub fn min_component(self) -> S
[src]
pub fn max_component(self) -> S
[src]
impl<S: Number> Vec3<S>
[src]
pub const ZERO: Self
[src]
pub const X: Self
[src]
pub const Y: Self
[src]
pub const Z: Self
[src]
pub fn dot(self, other: Self) -> S
[src]
pub fn cross(self, other: Self) -> Self
[src]
pub fn len2(self) -> S
[src]
pub fn distance2(self, other: Self) -> S
[src]
pub fn reflect(self, other: Self) -> Self
[src]
impl<S: Signed> Vec3<S>
[src]
impl<S: Float> Vec3<S>
[src]
pub fn len(self) -> S
[src]
pub fn normalized(self) -> Self
[src]
Trait Implementations
impl<S: Number> Add<Vec3<S>> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<S: Number> AddAssign<Vec3<S>> for Vec3<S>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<S: Clone> Clone for Vec3<S>
[src]
impl<S: Copy> Copy for Vec3<S>
[src]
impl<S: Debug> Debug for Vec3<S>
[src]
impl<S: Default> Default for Vec3<S>
[src]
impl<'de, S> Deserialize<'de> for Vec3<S> where
S: Deserialize<'de>,
[src]
S: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S: Number> Div<S> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: S) -> Self
[src]
impl<S: Number> Div<Vec3<S>> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl<S: Number> DivAssign<S> for Vec3<S>
[src]
fn div_assign(&mut self, other: S)
[src]
impl<S: Number> DivAssign<Vec3<S>> for Vec3<S>
[src]
fn div_assign(&mut self, other: Self)
[src]
impl<S: Number> Mul<S> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: S) -> Self::Output
[src]
impl<S: Number> Mul<Vec3<S>> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self::Output
[src]
impl<S: Number> MulAssign<S> for Vec3<S>
[src]
fn mul_assign(&mut self, other: S)
[src]
impl<S: Number> MulAssign<Vec3<S>> for Vec3<S>
[src]
fn mul_assign(&mut self, other: Self)
[src]
impl<S: Signed> Neg for Vec3<S>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<S: PartialEq> PartialEq<Vec3<S>> for Vec3<S>
[src]
impl<S> Serialize for Vec3<S> where
S: Serialize,
[src]
S: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<S> StructuralPartialEq for Vec3<S>
[src]
impl<S: Number> Sub<Vec3<S>> for Vec3<S>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<S: Number> SubAssign<Vec3<S>> for Vec3<S>
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Vec3<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Vec3<S> where
S: Send,
S: Send,
impl<S> Sync for Vec3<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Vec3<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Vec3<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,