Skip to main content

Cs

Struct Cs 

Source
pub struct Cs<const N: usize>(pub [f64; N]);
Expand description

📚 【 POL】: Generyczny wrapper dla tablic o stałym rozmiarze, ograniczony do wymiarów 2D i 3D. 📚 【 ENG】: Generic wrapper for fixed-size arrays, restricted to 2D and 3D dimensions.

⚠️ 【 POL】: Implementacja ściśle ograniczona do N=2 lub N=3. Inne wymiary nie są wspierane. ⚠️ 【 ENG】: Implementation strictly limited to N=2 or N=3. Other dimensions are not supported.

Tuple Fields§

§0: [f64; N]

Methods from Deref<Target = [f64; N]>§

1.57.0 · Source

pub fn as_slice(&self) -> &[T]

Returns a slice containing the entire array. Equivalent to &s[..].

1.77.0 · Source

pub fn each_ref(&self) -> [&T; N]

Borrows each element and returns an array of references with the same size as self.

§Example
let floats = [3.1, 2.7, -1.0];
let float_refs: [&f64; 3] = floats.each_ref();
assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);

This method is particularly useful if combined with other methods, like map. This way, you can avoid moving the original array if its elements are not Copy.

let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
let is_ascii = strings.each_ref().map(|s| s.is_ascii());
assert_eq!(is_ascii, [true, false, true]);

// We can still access the original array: it has not been moved.
assert_eq!(strings.len(), 3);
Source

pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

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

Divides one array reference into two at an index.

The first will contain all indices from [0, M) (excluding the index M itself) and the second will contain all indices from [M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.split_array_ref::<0>();
   assert_eq!(left, &[]);
   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<2>();
    assert_eq!(left, &[1, 2]);
    assert_eq!(right, &[3, 4, 5, 6]);
}

{
    let (left, right) = v.split_array_ref::<6>();
    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
    assert_eq!(right, &[]);
}
Source

pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

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

Divides one array reference into two at an index from the end.

The first will contain all indices from [0, N - M) (excluding the index N - M itself) and the second will contain all indices from [N - M, N) (excluding the index N itself).

§Panics

Panics if M > N.

§Examples
#![feature(split_array)]

let v = [1, 2, 3, 4, 5, 6];

{
   let (left, right) = v.rsplit_array_ref::<0>();
   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
   assert_eq!(right, &[]);
}

{
    let (left, right) = v.rsplit_array_ref::<2>();
    assert_eq!(left, &[1, 2, 3, 4]);
    assert_eq!(right, &[5, 6]);
}

{
    let (left, right) = v.rsplit_array_ref::<6>();
    assert_eq!(left, &[]);
    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}

Trait Implementations§

Source§

impl<const N: usize> AbstractArithmeticCsGeneric for Cs<N>
where Cs<N>: Dim,

Source§

fn add_cs(&self, rhs: &Self) -> Self

Source§

fn sub_cs(&self, rhs: &Self) -> Self

Source§

fn neg_cs(&self) -> Self

Source§

fn mul_scalar(&self, rhs: f64) -> Self

Source§

fn div_scalar(&self, rhs: f64) -> Self

Source§

impl AbstractHelperCs2 for Cs<2>

Source§

fn print_q(&self, name: &str)

📚 【 POL】: Wyświetla informację o ćwiartce i znakach składowych. 📚 【 ENG】: Displays quadrant information and component signs.
Source§

fn print_xy(&self, name: &str)

📚 【 POL】: Wyświetla współrzędne kartezjańskie (X, Y). 📚 【 ENG】: Displays Cartesian coordinates (X, Y).
Source§

fn print_rf(&self, name: &str, fmt: AngleFmt)

📚 【 POL】: Wyświetla współrzędne biegunowe (R, Φ). 📚 【 ENG】: Displays polar coordinates (R, Φ).
Source§

fn print(&self, name: &str, fmt: AngleFmt)

📚 【 POL】: Wyświetla zbiorczy raport debugowania dla wektora 2D. 📚 【 ENG】: Displays a summary debug report for the 2D vector.
Source§

impl AbstractHelperCs3 for Cs<3>

Source§

fn print_dms_sn_we(&self, name: &str)

📚 【 POL】: Wyświetla współrzędne w formacie geodezyjnym DMS (Stopnie, Minuty, Sekundy) z oznaczeniami N/S i E/W. 📚 【 ENG】: Displays coordinates in geodetic DMS (Degrees, Minutes, Seconds) format with N/S and E/W indicators.

Source§

fn print_q(&self, name: &str)

Source§

fn print_xyz(&self, name: &str)

Source§

fn print_rft(&self, name: &str, fmt: AngleFmt)

Source§

fn print_rfx(&self, name: &str, fmt: AngleFmt)

Source§

fn print_rfy(&self, name: &str, fmt: AngleFmt)

Source§

fn print_rfz(&self, name: &str, fmt: AngleFmt)

Source§

fn print(&self, name: &str, fmt: AngleFmt)

Source§

impl AbstractMathCs2 for Cs<2>

Source§

fn rxy(&self) -> f64

📚 【 POL】: Długość rzutu (promień) na płaszczyznę XY. 📚 【 ENG】: Projection length (radius) on the XY plane.

Source§

fn arctan_y_x(&self) -> f64

📚 【 POL】: Azymut matematyczny (od osi X w stronę Y, CCW). 📚 【 ENG】: Mathematical azimuth (from X-axis towards Y, CCW).

Source§

fn arctan_x_y(&self) -> f64

📚 【 POL】: Azymut kompasowy/geodezyjny (od osi Y w stronę X, CW). 📚 【 ENG】: Compass/geodetic azimuth (from Y-axis towards X, CW).

Source§

fn to_rf_from_xy(&self) -> Cs<2>

📚 【 POL】: Konwertuje wektor kartezjański [X, Y] na wektor biegunowy [R, Φ] w obrębie Cs2. 📚 【 ENG】: Converts a Cartesian vector [X, Y] to a polar vector [R, Φ] within Cs2.

Source§

fn to_ecef_from_rad_sn_we(&self, r: f64) -> Cs<3>

📚 【 POL】: Przekształca współrzędne geograficzne [Szerokość, Długość] w radianach na wektor 3D ECEF (X, Y, Z). 📚 【 ENG】: Transforms geographic coordinates [Latitude, Longitude] in radians to a 3D ECEF vector (X, Y, Z). ⚙️ 【 POL】: Wykorzystuje zadany promień ‘r’ (np. promień Ziemi). ⚙️ 【 ENG】: Uses the specified radius ‘r’ (e.g., Earth’s radius).

Source§

fn q(&self) -> u8

📚 【 POL】: Zwraca numer ćwiartki na płaszczyźnie XY (1-4). 📚 【 ENG】: Returns the quadrant number on the XY plane (1-4).

Source§

fn q_sign(&self) -> [&'static str; 2]

📚 【 POL】: Zwraca znaki kierunkowe osi X i Y w formie tablicy stringów (np. [“+”, “-”]). 📚 【 ENG】: Returns the directional signs of the X and Y axes as an array of strings (e.g., [“+”, “-”]).

Source§

fn rxy_sq(&self) -> f64

📚 【 POL】: Kwadrat długości rzutu XY (szybsza alternatywa dla rxy). 📚 【 ENG】: Squared projection length XY (faster alternative to rxy).

Source§

fn cross(&self, other: &Cs<2>) -> f64

📚 【 POL】: Iloczyn wektorowy 2D (wyznacznik). Znak określa orientację (lewo/prawo). 📚 【 ENG】: 2D cross product (determinant). The sign determines orientation (left/right).

Source§

fn perp(&self) -> Cs<2>

📚 【 POL】: Zwraca wektor prostopadły obrócony o 90° w lewo (CCW). 📚 【 ENG】: Returns a perpendicular vector rotated 90° to the left (CCW).

Source§

impl AbstractMathCs3 for Cs<3>

Source§

fn rxy(&self) -> f64

📚 【 POL】: Długość rzutu (promień) na płaszczyznę XY. 📚 【 ENG】: Projection length (radius) on the XY plane.

Source§

fn rxz(&self) -> f64

📚 【 POL】: Długość rzutu (promień) na płaszczyznę XZ. 📚 【 ENG】: Projection length (radius) on the XZ plane.

Source§

fn ryz(&self) -> f64

📚 【 POL】: Długość rzutu (promień) na płaszczyznę YZ. 📚 【 ENG】: Projection length (radius) on the YZ plane.

Source§

fn rxyz(&self) -> f64

📚 【 POL】: Pełna długość wektora w przestrzeni XYZ. 📚 【 ENG】: Full vector length in XYZ space.

Source§

fn arctan_y_x(&self) -> f64

📚 【 POL】: Azymut na płaszczyźnie XY (od X do Y). 📚 【 ENG】: Azimuth on the XY plane (from X to Y).

Source§

fn arctan_z_x(&self) -> f64

📚 【 POL】: Azymut na płaszczyźnie XZ (od X do Z). 📚 【 ENG】: Azimuth on the XZ plane (from X to Z).

Source§

fn arctan_z_y(&self) -> f64

📚 【 POL】: Azymut na płaszczyźnie YZ (od Y do Z). 📚 【 ENG】: Azimuth on the YZ plane (from Y to Z).

Source§

fn arctan_x_y(&self) -> f64

📚 【 POL】: Azymut kompasowy na XY (0° na osi Y). 📚 【 ENG】: Compass azimuth on XY (0° on Y-axis).

Source§

fn arctan_x_z(&self) -> f64

📚 【 POL】: Azymut kompasowy na XZ (0° na osi Z). 📚 【 ENG】: Compass azimuth on XZ (0° on Z-axis).

Source§

fn arctan_y_z(&self) -> f64

📚 【 POL】: Azymut kompasowy na YZ (0° na osi Z). 📚 【 ENG】: Compass azimuth on YZ (0° on Z-axis).

Source§

fn arccos_x_rxyz(&self) -> f64

📚 【 POL】: Kąt między wektorem a osią X. 📚 【 ENG】: Angle between the vector and the X-axis.

Source§

fn arccos_y_rxyz(&self) -> f64

📚 【 POL】: Kąt między wektorem a osią Y. 📚 【 ENG】: Angle between the vector and the Y-axis.

Source§

fn arccos_z_rxyz(&self) -> f64

📚 【 POL】: Kąt między wektorem a osią Z (Inklinacja sferyczna). 📚 【 ENG】: Angle between the vector and the Z-axis (Spherical inclination).

Source§

fn to_rf_from_xy(&self) -> Cs<2>

📚 【 POL】: Rzutuje wektor 3D na płaszczyznę XY w formacie biegunowym [R, Φ]. 📚 【 ENG】: Projects a 3D vector onto the XY plane in polar format [R, Φ].

Source§

fn to_rf_from_xz(&self) -> Cs<2>

📚 【 POL】: Rzutuje wektor 3D na płaszczyznę XZ w formacie biegunowym [R, Φ]. 📚 【 ENG】: Projects a 3D vector onto the XZ plane in polar format [R, Φ].

Source§

fn to_rf_from_yz(&self) -> Cs<2>

📚 【 POL】: Rzutuje wektor 3D na płaszczyznę YZ w formacie biegunowym [R, Φ]. 📚 【 ENG】: Projects a 3D vector onto the YZ plane in polar format [R, Φ].

Source§

fn to_rfx_from_xyz(&self) -> Cs<3>

📚 【 POL】: Konwertuje XYZ na układ cylindryczny względem osi X [R_yz, Φ_zy, X]. 📚 【 ENG】: Converts XYZ to a cylindrical system relative to the X-axis [R_yz, Φ_zy, X].

Source§

fn to_rfy_from_xyz(&self) -> Cs<3>

📚 【 POL】: Konwertuje XYZ na układ cylindryczny względem osi Y [R_xz, Φ_zx, Y]. 📚 【 ENG】: Converts XYZ to a cylindrical system relative to the Y-axis [R_xz, Φ_zx, Y].

Source§

fn to_rfz_from_xyz(&self) -> Cs<3>

📚 【 POL】: Konwertuje XYZ na układ cylindryczny względem osi Z [R_xy, Φ_yx, Z]. 📚 【 ENG】: Converts XYZ to a cylindrical system relative to the Z-axis [R_xy, Φ_yx, Z].

Source§

fn to_rft_from_xyz(&self) -> Cs<3>

📚 【 POL】: Konwertuje XYZ na pełny układ sferyczny [R_xyz, Φ_yx, Θ_zr]. 📚 【 ENG】: Converts XYZ to a full spherical system [R_xyz, Φ_yx, Θ_zr].

Source§

fn to_ecef_from_dms_sn_we( sn_d: i16, sn_m: u8, sn_s: f32, we_d: i16, we_m: u8, we_s: f32, r: f64, ) -> Self

📚 【 POL】: Tworzy wektor ECEF (XYZ) bezpośrednio z danych DMS i promienia. 📚 【 ENG】: Creates an ECEF vector (XYZ) directly from DMS data and radius.

Source§

fn to_dms_sn_we_from_xyz(&self) -> CoordsSphericalEcefSnWeDms

📚 【 POL】: Konwertuje wektor XYZ na geodezyjny format DMS (Szerokość, Długość). 📚 【 ENG】: Converts a XYZ vector to geodetic DMS format (Latitude, Longitude).

Source§

fn q(&self) -> u8

📚 【 POL】: Zwraca numer oktantu (1-8) w którym znajduje się wektor. 📚 【 ENG】: Returns the octant number (1-8) where the vector is located.

Source§

fn q_sign(&self) -> [&'static str; 3]

📚 【 POL】: Zwraca znaki kierunkowe osi XYZ (np. [“+”, “-”, “+”]). 📚 【 ENG】: Returns the directional signs of the XYZ axes (e.g., [“+”, “-”, “+”]).

Source§

fn rxyz_sq(&self) -> f64

📚 【 POL】: Kwadrat pełnej długości wektora 3D. 📚 【 ENG】: Squared full length of the 3D vector.

Source§

fn rxy_sq(&self) -> f64

📚 【 POL】: Kwadrat długości rzutu na płaszczyznę XY. 📚 【 ENG】: Squared projection length on the XY plane.

Source§

fn rxz_sq(&self) -> f64

📚 【 POL】: Kwadrat długości rzutu na płaszczyznę XZ. 📚 【 ENG】: Squared projection length on the XZ plane.

Source§

fn ryz_sq(&self) -> f64

📚 【 POL】: Kwadrat długości rzutu na płaszczyznę YZ. 📚 【 ENG】: Squared projection length on the YZ plane.

Source§

fn normalize_rxy_projection(&self) -> Cs<3>

📚 【 POL】: Normalizuje rzut XY do długości 1.0, zachowując składową Z. 📚 【 ENG】: Normalizes the XY projection to length 1.0, preserving the Z component.

Source§

fn normalize_rxz_projection(&self) -> Cs<3>

📚 【 POL】: Normalizuje rzut XZ do długości 1.0, zachowując składową Y. 📚 【 ENG】: Normalizes the XZ projection to length 1.0, preserving the Y component.

Source§

fn normalize_ryz_projection(&self) -> Cs<3>

📚 【 POL】: Normalizuje rzut YZ do długości 1.0, zachowując składową X. 📚 【 ENG】: Normalizes the YZ projection to length 1.0, preserving the X component.

Source§

fn cross(&self, other: &Cs<3>) -> Cs<3>

📚 【 POL】: Iloczyn wektorowy (Cross product). Zwraca wektor ortogonalny. 📚 【 ENG】: Cross product. Returns an orthogonal vector.

Source§

impl<const N: usize> AbstractMathCsGeneric for Cs<N>
where Cs<N>: Dim,

Source§

fn sub(&self, other: &Self) -> Self

📚 【 POL】: Operacja odejmowania wektorów. Zwraca wektor różnicy (B - A). 📚 【 ENG】: Vector subtraction. Returns the difference vector (B - A).

Source§

fn add(&self, other: &Self) -> Self

📚 【 POL】: Operacja dodawania wektorów. Zwraca wektor sumy (A + B). 📚 【 ENG】: Vector addition. Returns the sum vector (A + B).

Source§

fn dot(&self, other: &Self) -> f64

📚 【 POL】: Iloczyn skalarny (Dot product) dla dowolnego wymiaru N. 📚 【 ENG】: Dot product for any dimension N.

Source§

fn r_sq(&self) -> f64

📚 【 POL】: Kwadrat pełnej długości wektora (R²). Eliminuje kosztowne pierwiastkowanie. 📚 【 ENG】: Squared full length of the vector (R²). Eliminates costly square root.

Source§

fn r(&self) -> f64

📚 【 POL】: Pełna długość wektora w przestrzeni (Norma Euklidesowa R). 📚 【 ENG】: Full length of the vector in space (Euclidean Norm R).

Source§

fn normalize_r_projection(&self) -> Self

📚 【 POL】: Normalizuje wektor do długości jednostkowej (1.0). Zwraca wektor zerowy przy zerowej długości. 📚 【 ENG】: Normalizes the vector to unit length (1.0). Returns a zero vector for zero length.

Source§

fn angle_between(&self, other: &Self) -> f64

📚 【 POL】: Oblicza kąt między dwoma wektorami w radianach. 📚 【 ENG】: Calculates the angle between two vectors in radians.

Source§

impl<const N: usize> AbstractModelCsGeneric<N> for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja kontraktu bazowego (przeniesiona z model.rs).

Source§

fn new(data: [f64; N]) -> Self

Source§

fn origin() -> Self

Source§

fn as_slice(&self) -> &[f64]

Source§

impl AbstractProjectionsCs2 for Cs<2>

Source§

fn new_from_rf(r: f64, phi_rad: f64) -> Self

📚 【 POL】: Tworzy nowy wektor Cs2 z układu biegunowego (R, Φ) na płaszczyźnie XY. 📚 【 ENG】: Creates a new Cs2 vector from a polar system (R, Φ) on the XY plane.

Source§

fn new_as_xy_from_rf(&self) -> Cs<2>

📚 【 POL】: Interpretuje Cs2 jako kontener [R, Φ] i zwraca kartezjański wektor 2D [X, Y]. 📚 【 ENG】: Interprets Cs2 as a [R, Φ] container and returns a 2D Cartesian vector [X, Y].

Source§

fn new_as_xyz_from_rf_with_z(&self, z: f64) -> Cs<3>

📚 【 POL】: Interpretuje Cs2 jako [R_xy, Φ] i zwraca kartezjański Cs3 z zadaną wysokością Z. 📚 【 ENG】: Interprets Cs2 as [R_xy, Φ] and returns a Cartesian Cs3 with a given Z height.

Source§

fn new_as_xyz_from_rf_with_y(&self, y: f64) -> Cs<3>

📚 【 POL】: Interpretuje Cs2 jako [R_xz, Φ] i zwraca kartezjański Cs3 z zadaną szerokością Y. 📚 【 ENG】: Interprets Cs2 as [R_xz, Φ] and returns a Cartesian Cs3 with a given Y width.

Source§

fn new_as_xyz_from_rf_with_x(&self, x: f64) -> Cs<3>

📚 【 POL】: Interpretuje Cs2 jako [R_yz, Φ] i zwraca kartezjański Cs3 z zadaną współrzędną X. 📚 【 ENG】: Interprets Cs2 as [R_yz, Φ] and returns a Cartesian Cs3 with a given X coordinate.

Source§

fn new_as_xy(&self) -> Cs<3>

Source§

fn new_as_xz(&self) -> Cs<3>

Source§

fn new_as_yz(&self) -> Cs<3>

Source§

impl AbstractProjectionsCs3 for Cs<3>

Source§

fn new_from_rft(r: f64, phi_rad: f64, theta_rad: f64) -> Self

📚 【 POL】: Tworzy nowy wektor Cs3 z układu sferycznego (R, Φ, Θ). 📚 【 ENG】: Creates a new Cs3 vector from a spherical system (R, Φ, Θ).

Source§

fn new_as_xyz_from_rft(&self) -> Cs<3>

📚 【 POL】: Interpretuje Cs3 jako kontener sferyczny [R, Φ, Θ] i zwraca wektor kartezjański [X, Y, Z]. 📚 【 ENG】: Interprets Cs3 as a spherical container [R, Φ, Θ] and returns a Cartesian vector [X, Y, Z].

Source§

fn new_from_rfz(r_d2: f64, phi_rad: f64, z: f64) -> Self

📚 【 POL】: Tworzy nowy wektor 3D z układu cylindrycznego względem osi Z: (R_xy, Φ, Z). 📚 【 ENG】: Creates a new 3D vector from a cylindrical system relative to the Z-axis: (R_xy, Φ, Z).

Source§

fn new_from_rfx(r_d2: f64, phi_rad: f64, x: f64) -> Self

📚 【 POL】: Tworzy nowy wektor 3D z układu cylindrycznego względem osi X: (R_yz, Φ, X). 📚 【 ENG】: Creates a new 3D vector from a cylindrical system relative to the X-axis: (R_yz, Φ, X). ⚙️ 【 POL】: Kąt Φ mierzony jest od osi Y do Z na płaszczyźnie YZ. ⚙️ 【 ENG】: Angle Φ is measured from the Y-axis to the Z-axis on the YZ plane.

Source§

fn new_from_rfy(r_d2: f64, phi_rad: f64, y: f64) -> Self

📚 【 POL】: Tworzy nowy wektor 3D z układu cylindrycznego względem osi Y: (R_xz, Φ, Y). 📚 【 ENG】: Creates a new 3D vector from a cylindrical system relative to the Y-axis: (R_xz, Φ, Y). ⚙️ 【 POL】: Kąt Φ mierzony jest od osi X do Z na płaszczyźnie XZ. ⚙️ 【 ENG】: Angle Φ is measured from the X-axis to the Z-axis on the XZ plane.

Source§

impl<const N: usize> Add for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja operatora dodawania (Cs + Cs). 📚 【 ENG】: Implementation of the addition operator (Cs + Cs).

Source§

type Output = Cs<N>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<const N: usize> Clone for Cs<N>

Source§

fn clone(&self) -> Cs<N>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const N: usize> Debug for Cs<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize> Deref for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja Deref zapewniająca bezpośredni dostęp do wewnętrznej tablicy danych. 📚 【 ENG】: Deref implementation providing direct access to the internal data array.

Source§

type Target = [f64; N]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<const N: usize> Div<f64> for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja dzielenia wektora przez skalar (Cs / f64). 📚 【 ENG】: Implementation of vector division by a scalar (Cs / f64).

Source§

type Output = Cs<N>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<const N: usize> Mul<Cs<N>> for f64
where Cs<N>: Dim,

📚 【 POL】: Implementacja mnożenia skalara przez wektor (f64 * Cs). 📚 【 ENG】: Implementation of scalar multiplication by a vector (f64 * Cs).

Source§

type Output = Cs<N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Cs<N>) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Mul<f64> for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja mnożenia wektora przez skalar (Cs * f64). 📚 【 ENG】: Implementation of vector multiplication by a scalar (Cs * f64).

Source§

type Output = Cs<N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<const N: usize> Neg for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja operatora negacji (-Cs). 📚 【 ENG】: Implementation of the negation operator (-Cs).

Source§

type Output = Cs<N>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<const N: usize> PartialEq for Cs<N>

Source§

fn eq(&self, other: &Cs<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<const N: usize> Sub for Cs<N>
where Cs<N>: Dim,

📚 【 POL】: Implementacja operatora odejmowania (Cs - Cs). 📚 【 ENG】: Implementation of the subtraction operator (Cs - Cs).

Source§

type Output = Cs<N>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<const N: usize> Copy for Cs<N>

Source§

impl Dim for Cs<2>

Source§

impl Dim for Cs<3>

Source§

impl<const N: usize> StructuralPartialEq for Cs<N>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for Cs<N>

§

impl<const N: usize> RefUnwindSafe for Cs<N>

§

impl<const N: usize> Send for Cs<N>

§

impl<const N: usize> Sync for Cs<N>

§

impl<const N: usize> Unpin for Cs<N>

§

impl<const N: usize> UnsafeUnpin for Cs<N>

§

impl<const N: usize> UnwindSafe for Cs<N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.