[−][src]Struct beehive::coords::VectorAxial
Axial hex coordinates representing vectors. Always valid.
Fields
x: T
y: T
w: T
Methods
impl<T> VectorAxial<T>
[src]
impl<T: Zero> VectorAxial<T>
[src]
impl<T: One> VectorAxial<T>
[src]
impl<T: Copy + Zero + Sub<Output = T>> VectorAxial<T>
[src]
impl<T: Real> VectorAxial<T>
[src]
impl<T> VectorAxial<T>
[src]
pub fn cast<N>(self) -> VectorAxial<N> where
N: 'static + Copy,
T: AsPrimitive<N>,
[src]
N: 'static + Copy,
T: AsPrimitive<N>,
Cast to a primitive type.
N
must be a primitive numeric type.
impl<T> VectorAxial<T>
[src]
pub fn into_point(self) -> PointAxial<T>
[src]
Convert this vector to a point with the same component values.
impl<T: Zero + One + Neg<Output = T>> VectorAxial<T>
[src]
pub fn in_direction(d: Direction) -> VectorAxial<T>
[src]
Get directional vector from a Direction value.
Trait Implementations
impl<T> Add<Direction> for VectorAxial<T> where
T: Zero + One + Add + Neg<Output = T>,
[src]
T: Zero + One + Add + Neg<Output = T>,
type Output = VectorAxial<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Direction) -> Self::Output
[src]
impl<T, O> Add<VectorAxial<T>> for PointAxial<T> where
T: Add<Output = O>,
[src]
T: Add<Output = O>,
type Output = PointAxial<O>
The resulting type after applying the +
operator.
fn add(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T, O> Add<VectorAxial<T>> for VectorAxial<T> where
T: Add<Output = O>,
[src]
T: Add<Output = O>,
type Output = VectorAxial<O>
The resulting type after applying the +
operator.
fn add(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T> AddAssign<Direction> for VectorAxial<T> where
T: Zero + One + AddAssign<T> + Neg<Output = T>,
[src]
T: Zero + One + AddAssign<T> + Neg<Output = T>,
fn add_assign(&mut self, rhs: Direction)
[src]
impl<T> AddAssign<VectorAxial<T>> for PointAxial<T> where
T: AddAssign,
[src]
T: AddAssign,
fn add_assign(&mut self, rhs: VectorAxial<T>)
[src]
impl<T> AddAssign<VectorAxial<T>> for VectorAxial<T> where
T: AddAssign,
[src]
T: AddAssign,
fn add_assign(&mut self, rhs: VectorAxial<T>)
[src]
impl<T: Clone> Clone for VectorAxial<T>
[src]
fn clone(&self) -> VectorAxial<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for VectorAxial<T>
[src]
impl<T: Debug> Debug for VectorAxial<T>
[src]
impl<T: Default> Default for VectorAxial<T>
[src]
fn default() -> VectorAxial<T>
[src]
impl<'de, T> Deserialize<'de> for VectorAxial<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Display> Display for VectorAxial<T>
[src]
impl<T, O> Div<T> for VectorAxial<T> where
T: Copy + Div<Output = O>,
[src]
T: Copy + Div<Output = O>,
type Output = VectorAxial<O>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<T> for VectorAxial<T> where
T: Copy + DivAssign,
[src]
T: Copy + DivAssign,
fn div_assign(&mut self, rhs: T)
[src]
impl<T: Eq> Eq for VectorAxial<T>
[src]
impl<T> From<Vector<T>> for VectorAxial<T>
[src]
impl<T: Copy + Zero + Sub<Output = T>> From<VectorAxial<T>> for Vector<T>
[src]
fn from(c: VectorAxial<T>) -> Vector<T>
[src]
impl<T: Hash> Hash for VectorAxial<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, O> Mul<T> for VectorAxial<T> where
T: Copy + Mul<Output = O>,
[src]
T: Copy + Mul<Output = O>,
type Output = VectorAxial<O>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<T> for VectorAxial<T> where
T: Copy + MulAssign,
[src]
T: Copy + MulAssign,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: PartialEq> PartialEq<VectorAxial<T>> for VectorAxial<T>
[src]
fn eq(&self, other: &VectorAxial<T>) -> bool
[src]
fn ne(&self, other: &VectorAxial<T>) -> bool
[src]
impl<T> Serialize for VectorAxial<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T> StructuralEq for VectorAxial<T>
[src]
impl<T> StructuralPartialEq for VectorAxial<T>
[src]
impl<T> Sub<Direction> for VectorAxial<T> where
T: Zero + One + Sub<Output = T> + Neg<Output = T>,
[src]
T: Zero + One + Sub<Output = T> + Neg<Output = T>,
type Output = VectorAxial<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Direction) -> Self::Output
[src]
impl<T, O> Sub<VectorAxial<T>> for PointAxial<T> where
T: Sub<Output = O>,
[src]
T: Sub<Output = O>,
type Output = PointAxial<O>
The resulting type after applying the -
operator.
fn sub(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T, O> Sub<VectorAxial<T>> for VectorAxial<T> where
T: Sub<Output = O>,
[src]
T: Sub<Output = O>,
type Output = VectorAxial<O>
The resulting type after applying the -
operator.
fn sub(self, rhs: VectorAxial<T>) -> Self::Output
[src]
impl<T> SubAssign<Direction> for VectorAxial<T> where
T: Zero + One + SubAssign<T> + Neg<Output = T>,
[src]
T: Zero + One + SubAssign<T> + Neg<Output = T>,
fn sub_assign(&mut self, rhs: Direction)
[src]
impl<T> SubAssign<VectorAxial<T>> for PointAxial<T> where
T: SubAssign,
[src]
T: SubAssign,
fn sub_assign(&mut self, rhs: VectorAxial<T>)
[src]
impl<T> SubAssign<VectorAxial<T>> for VectorAxial<T> where
T: SubAssign,
[src]
T: SubAssign,
fn sub_assign(&mut self, rhs: VectorAxial<T>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for VectorAxial<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for VectorAxial<T> where
T: Send,
T: Send,
impl<T> Sync for VectorAxial<T> where
T: Sync,
T: Sync,
impl<T> Unpin for VectorAxial<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for VectorAxial<T> where
T: UnwindSafe,
T: 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,