Struct turbine_reactive::Reactor [] [src]

pub struct Reactor<T> {
    pub bools: Vec<Bool<T>>,
    pub points1: Vec<Point1<T>>,
    pub points2: Vec<Point2<T>>,
    pub points3: Vec<Point3<T>>,
    pub points4: Vec<Point4<T>>,
    pub splines1: Vec<Spline1<T>>,
    pub splines2: Vec<Spline2<T>>,
    pub splines3: Vec<Spline3<T>>,
    pub splines4: Vec<Spline4<T>>,
    pub surfaces1: Vec<Surface1<T>>,
    pub surfaces2: Vec<Surface2<T>>,
    pub surfaces3: Vec<Surface3<T>>,
    pub surfaces4: Vec<Surface4<T>>,
    pub colors: Vec<Color<T>>,
    pub color_splines: Vec<ColorSpline>,
    pub bones1: Vec<Bone1<T>>,
    pub bones2: Vec<Bone2<T>>,
    pub bones3: Vec<Bone3<T>>,
    pub bones4: Vec<Bone4<T>>,
    pub time: Option<Point1<T>>,
    pub dt: Option<Point1<T>>,
}

Stores data for an reactive document.

Fields

Stores bools.

Stores scalars.

Stores 2D points.

Stores 3D points.

Stores 4D points.

Stores splines for scalars.

Stores splines for 2D points.

Stores splines for 3D points.

Stores splines for 4D points.

Stores surface for 1D.

Stores surfaces for 2D.

Stores surfaces for 3D.

Stores surface for 4D.

Stores colors.

Stores color splines.

Stores bones between scalars.

Stores bones between 2D points.

Stores bones between 3D points.

Stores bones between 4D points.

Refers to time for reuse. This is also used to detect whether document is animated.

Refers to delta time. This is also used to detect whether document is moving.

Methods

impl<T> Reactor<T>
[src]

[src]

Evaluate bool.

[src]

Evaluate scalar.

[src]

Evaluate 2D point.

[src]

Evaluate 3D point.

[src]

Evaluate 4D point.

[src]

Evaluate 1D spline with an argument.

[src]

Evaluate 2D spline with an argument.

[src]

Evaluate 3D spline with an argument.

[src]

Evaluate 4D spline with an argument.

[src]

Evaluate 1D surface with an argument.

[src]

Evaluate 2D surface with an argument.

[src]

Evaluate 3D surface with an argument.

[src]

Evaluate 4D surface with an argument.

[src]

Evaluates color.

[src]

Evaluates color spline.

impl<T> Reactor<T>
[src]

[src]

Adds new bool.

[src]

Adds new logical NOT.

[src]

Adds new logical AND.

[src]

Adds new logical OR.

[src]

Adds new logical XOR.

[src]

Adds new logical EQ.

[src]

Adds new check number equality check.

[src]

Adds new 2D vector equality check.

[src]

Adds new 3D vector equality check.

[src]

Adds new 4D vector equality check.

[src]

Adds new less comparison.

[src]

Adds new more comparison. Uses less by swapping arguments.

[src]

Adds new greater or equal comparison.

[src]

Adds new less or equal comparison. Uses greater or equal by swapping arguments.

[src]

Adds new scalar.

[src]

Adds new 2D point.

[src]

Adds new 3D point.

[src]

Adds new 4D point.

[src]

Adds new 1D point from a line.

[src]

Adds new 2D point from a line.

[src]

Adds new 3D point from a line.

[src]

Adds new 4D point from a line.

[src]

Adds new 1D point from a surface.

[src]

Adds new 2D point from a surface.

[src]

Adds new 3D point from a surface.

[src]

Adds new 4D point from a surface.

[src]

Adds sum of two numbers.

[src]

Adds sum of two 2D vectors.

[src]

Adds sum of two 3D vectors.

[src]

Adds sum of two 4D vectors.

[src]

Adds difference between two numbers.

[src]

Adds difference between two 2D vectors.

[src]

Adds difference between two 3D vectors.

[src]

Adds difference between two 4D vectors.

[src]

Adds product of two numbers.

[src]

Adds division of two numbers.

[src]

Adds product component wise of two 2D vectors.

[src]

Adds product component wise of two 3D vectors.

[src]

Adds product component wise of two 4D vectors.

[src]

Dot product of two 2D vectors.

[src]

Dot product of two 3D vectors.

[src]

Dot product of two 4D vectors.

[src]

Cross product of two 2D vectors.

[src]

Cross product of two 3D vectors.

[src]

Adds abolute value of number.

[src]

Adds length of 2D vector.

[src]

Adds length of 3D vector.

[src]

Adds length of 4D vector.

[src]

Adds negative of number.

[src]

Adds sign of number.

[src]

Adds sine of angle.

[src]

Adds cosine of angle.

[src]

Adds tangent of angle.

[src]

Adds inverse sine of angle.

[src]

Adds inverse cosine of angle.

[src]

Adds inverse tangent of angle.

[src]

Adds inverse tangent of y, x.

[src]

Adds hyperbolic sine of angle.

[src]

Adds hyperbolic cosine of angle.

[src]

Adds hyperbolic tangent of angle.

[src]

Adds inverse hyperbolic sine of angle.

[src]

Adds inverse hyperbolic cosine of angle.

[src]

Adds inverse hyperbolic tangent of angle.

[src]

Adds maximum of two numbers.

[src]

Adds maximum of two 2D vectors.

[src]

Adds maximum of two 3D vectors.

[src]

Adds maximum of two 4D vectors.

[src]

Adds minimum of two numbers.

[src]

Adds minimum of two 2D vectors.

[src]

Adds minimum of two 3D vectors.

[src]

Adds minimum of two 4D vectors.

[src]

Adds square root of number.

[src]

Adds conversion from degrees to radians.

[src]

Adds conversion from radians to degrees.

[src]

Adds time.

[src]

Adds delta time.

[src]

Adds new 1D line.

[src]

Adds new 2D line.

[src]

Adds new 3D line.

[src]

Adds new 4D line.

[src]

Adds new 1D quadratic bezier spline.

[src]

Adds new 2D quadratic bezier spline.

[src]

Adds new 3D quadratic bezier spline.

[src]

Adds new 4D quadratic bezier spline.

[src]

Adds new 1D cubic bezier spline.

[src]

Adds new 2D cubic bezier spline.

[src]

Adds new 3D cubic bezier spline.

[src]

Adds new 4D cubic bezier spline.

[src]

Adds new 1D segment from line.

[src]

Adds new 2D segment from line.

[src]

Adds new 3D segment from line.

[src]

Adds new 4D segment from line.

[src]

Adds new 1D line on surface.

[src]

Adds new 2D line on surface.

[src]

Adds new 3D line on surface.

[src]

Adds new 4D line on surface.

[src]

Adds new 1D contour of surface.

[src]

Adds new 2D contour of surface.

[src]

Adds new 3D contour of surface.

[src]

Adds new 4D contour of surface.

[src]

Adds new 1D rectangle.

[src]

Adds new 2D rectangle.

[src]

Adds new 3D rectangle.

[src]

Adds new 4D rectangle.

[src]

Adds new 1D surface lerp.

[src]

Adds new 2D surface lerp.

[src]

Adds new 3D surface lerp.

[src]

Adds new 4D surface lerp.

[src]

Adds new 1D curved quad.

[src]

Adds new 2D curved quad.

[src]

Adds new 3D curved quad.

[src]

Adds new 4D curved quad.

[src]

Adds new circle in 1D (sine wave).

[src]

Adds new 2D circle.

[src]

Adds new 3D circle.

[src]

Adds new 4D circle.

[src]

Adds new color. Converts from sRGB to linear color space for easier manipulation internally.

[src]

Adds new lerp color.

[src]

Adds new eq bone between scalars.

[src]

Adds new eq bone between 2D points.

[src]

Adds new eq bone between 3D points.

[src]

Adds new eq bone between 4D points.

[src]

Adds new less bone between scalars.

[src]

Adds new less bone between 2D vectors.

[src]

Adds new less bone between 3D vectors.

[src]

Adds new less bone between 4D vectors.

[src]

Adds new more bone between scalars.

[src]

Adds new more bone between 2D vectors.

[src]

Adds new more bone between 3D vectors.

[src]

Adds new more bone between 4D vectors.

impl<T> Reactor<T>
[src]

[src]

Creates a new Reactor.

Trait Implementations

impl<T> Index<Bool> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<Point1<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<Point2<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<Point3<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<Point4<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SplineRef1<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SplineRef2<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SplineRef3<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SplineRef4<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SurfaceRef1<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SurfaceRef2<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SurfaceRef3<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<SurfaceRef4<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<Bool> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<Point1<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<Point2<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<Point3<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<Point4<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SplineRef1<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SplineRef2<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SplineRef3<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SplineRef4<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SurfaceRef1<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SurfaceRef2<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SurfaceRef3<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<SurfaceRef4<T>> for Reactor<T>
[src]

[src]

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

impl<T> Index<Color> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<Color> for Reactor<T>
[src]

[src]

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

impl<T> Index<ColorSpline> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<ColorSpline> for Reactor<T>
[src]

[src]

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

impl<T> Index<BoneRef1<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<BoneRef2<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<BoneRef3<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> Index<BoneRef4<T>> for Reactor<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<BoneRef1<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<BoneRef2<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<BoneRef3<T>> for Reactor<T>
[src]

[src]

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

impl<T> IndexMut<BoneRef4<T>> for Reactor<T>
[src]

[src]

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