Struct simple_vectors::Vector[][src]

pub struct Vector<T, const N: usize>(_);

Implementations

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Creates an unit basis of the vector space.

Creates a scaled basis of the vector space of the specified magnitude.

Queries a basis of a vector space.

Queries a basis of a vector space as a mutable reference.

Creates a new vector with a single basis set to a different value.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

The output type of the dot product.

The dot product.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

The scalar product.

The squared magnitude. Read more

The magnitude of a vector.

The normalized vector.

The angle between two vectors.

Sets the magnitude of a vector.

Sets the direction of a vector.

The value of the vector along the specified axis.

Projects a vector onto an already normalized direction vector.

Projects a vector onto an arbitraty direction vector.

Rejects a vector from an already normalized direction vector.

Rejects a vector from an arbitraty direction vector.

Reflects a vector from an already normalized direction vector.

Reflects a vector from an arbitraty direction vector.

Performs the conversion.

Performs the conversion.

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

The scalar type of the vector space.

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

Sets self to the additive identity element of Self, 0.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Creates the specified unit basis of the vector space.

Creates the specified basis of the vector of the specified magnitude.

Queries the specified basis of a vector space.

Queries the specified basis of a vector space as a mutable reference.

Creates a new vector with the specified basis set to a different value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.