Skip to main content

VectorTranscendental

Trait VectorTranscendental 

Source
pub trait VectorTranscendental<T: Transcendental, const N: usize>: Vector<T, N> {
    // Required methods
    fn sqrt(&self) -> Self;
    fn exp(&self) -> Self;
    fn ln(&self) -> Self;
    fn sin(&self) -> Self;
    fn cos(&self) -> Self;
    fn tan(&self) -> Self;
}
Expand description

Трейт для векторных типов с трансцендентными операциями.

Доступен только для T: Transcendental (f32, f64).

Required Methods§

Source

fn sqrt(&self) -> Self

Source

fn exp(&self) -> Self

Source

fn ln(&self) -> Self

Source

fn sin(&self) -> Self

Source

fn cos(&self) -> Self

Source

fn tan(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl VectorTranscendental<f32, 4> for rill_core::math::vector::simd::wide::F32x4

Available on (x86 or x86-64) and crate feature simd only.
Source§

impl VectorTranscendental<f32, 4> for rill_core::math::vector::simd::x86::F32x4

Available on x86 or x86-64 only.
Source§

impl VectorTranscendental<f32, 8> for F32x8

Available on (x86 or x86-64) and crate feature simd only.
Source§

impl VectorTranscendental<f64, 2> for F64x2

Available on (x86 or x86-64) and crate feature simd only.
Source§

impl VectorTranscendental<f64, 4> for F64x4

Available on (x86 or x86-64) and crate feature simd only.
Source§

impl<T: Transcendental> VectorTranscendental<T, 1> for ScalarVector1<T>

Source§

impl<T: Transcendental> VectorTranscendental<T, 2> for ScalarVector2<T>

Source§

impl<T: Transcendental> VectorTranscendental<T, 4> for ScalarVector4<T>