[][src]Struct higher_order_point::Point

pub struct Point<T = ()> where
    f64: Ho<T>, 
{ pub x: Fun<T, f64>, pub y: Fun<T, f64>, pub z: Fun<T, f64>, }

3D point.

Fields

x: Fun<T, f64>

Function for x-coordinates.

y: Fun<T, f64>

Function for y-coordinates.

z: Fun<T, f64>

Function for z-coordinates.

Methods

impl Point<Arg<T>>[src]

pub fn ground_plane() -> Self[src]

Returns ground plane with zero z-values.

impl Point<Arg<T>>[src]

pub fn space() -> Self[src]

Returns plain Euclidean space.

impl<T: 'static> Point<Arg<T>>[src]

pub fn lift_right<U>(self) -> PointFunc<(T, U)>[src]

Adds another parameter to the right.

pub fn lift_left<U>(self) -> PointFunc<(U, T)>[src]

Adds another parameter to the left.

pub fn call(&self, val: T) -> Point where
    T: Copy
[src]

Helper method for calling value.

impl Point<Arg<T>>[src]

pub fn circle() -> Self[src]

Creates a new circle in the xy-plane.

pub fn circle_radians() -> Self[src]

Creates a new circle in xy-plane that uses radians.

pub fn zig_zag() -> Self[src]

Creates a new zig-zag function in the xy-plane.

pub fn zag_zig() -> Self[src]

Creates a new zag-zig function in the xy-plane.

pub fn x() -> Self[src]

Points along the x-axis.

pub fn y() -> Self[src]

Points along the y-axis.

pub fn z() -> Self[src]

Points along the z-axis.

Trait Implementations

impl Add<Point<()>> for Point[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: 'static + Copy> Add<Point<Arg<T>>> for PointFunc<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: 'static> Add<Point<Arg<T>>> for Point[src]

type Output = PointFunc<T>

The resulting type after applying the + operator.

impl Add<f64> for Point[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Copy> Call<T> for Point where
    f64: Ho<Arg<T>> + Call<T>, 
[src]

impl<T: Clone> Clone for Point<T> where
    f64: Ho<T>, 
[src]

impl Copy for Point[src]

impl Cross<Point<()>> for Point[src]

type Output = Point

The output type.

impl<T: 'static + Copy> Cross<Point<Arg<T>>> for PointFunc<T>[src]

type Output = Self

The output type.

impl Debug for Point[src]

impl Dot<Point<()>> for Point[src]

type Output = f64

The output type.

impl<T: 'static + Copy> Dot<Point<Arg<T>>> for PointFunc<T>[src]

type Output = Func<T, f64>

The output type.

impl From<Point<()>> for [f64; 3][src]

impl<T: 'static + Copy> From<Point<Arg<(T, T)>>> for PointFunc<[T; 2]>[src]

impl<T: Clone> Ho<Arg<T>> for Point[src]

type Fun = PointFunc<T>

The function type.

impl Into<Point<()>> for [f64; 3][src]

impl<T> Into<Point<Arg<T>>> for [f64; 3][src]

impl<T: 'static> Mul<Arc<dyn Fn(T) + 'static + Send + Sync>> for Point[src]

type Output = PointFunc<T>

The resulting type after applying the * operator.

impl<T: 'static> Mul<Point<Arg<T>>> for Point[src]

type Output = PointFunc<T>

The resulting type after applying the * operator.

impl<T: 'static + Copy> Mul<Point<Arg<T>>> for PointFunc<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f64> for Point[src]

type Output = Self

The resulting type after applying the * operator.

impl Norm for Point[src]

type Output = f64

The output type.

impl PartialEq<Point<()>> for Point[src]

impl Sub<Point<()>> for Point[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: 'static + Copy> Sub<Point<Arg<T>>> for PointFunc<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: 'static> Sub<Point<Arg<T>>> for Point[src]

type Output = PointFunc<T>

The resulting type after applying the - operator.

impl Sub<f64> for Point[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T = ()> !RefUnwindSafe for Point<T>

impl<T = ()> !Send for Point<T>

impl<T = ()> !Sync for Point<T>

impl<T = ()> !Unpin for Point<T>

impl<T = ()> !UnwindSafe for Point<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> Call<T> for U where
    U: Ho<Arg<T>, Fun = Arc<dyn Fn(T) + 'static + Send + Sync>>, 

impl<T> From<T> for T[src]

impl<T, U> HMap<U> for T where
    U: Call<T>, 

type Fun = <U as Ho<Arg<T>>>::Fun

The out type.

impl<T> Ho<()> for T where
    T: Clone

type Fun = T

The function type.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.