Skip to main content

IHableCurveMethods

Trait IHableCurveMethods 

Source
pub trait IHableCurveMethods: IHableCurve {
Show 15 methods // Provided methods fn get_white_point(self) -> f32 { ... } fn set_white_point(self, value: impl Into<f32>) { ... } fn get_inverse_white_point(self) -> f32 { ... } fn set_inverse_white_point(self, value: impl Into<f32>) { ... } fn get_x0(self) -> f32 { ... } fn set_x0(self, value: impl Into<f32>) { ... } fn get_x1(self) -> f32 { ... } fn set_x1(self, value: impl Into<f32>) { ... } fn ctor(self) { ... } fn eval(self, x: impl Into<f32>) -> f32 { ... } fn init( self, toe_strength: impl Into<f32>, toe_length: impl Into<f32>, shoulder_strength: impl Into<f32>, shoulder_length: impl Into<f32>, shoulder_angle: impl Into<f32>, gamma: impl Into<f32>, ) { ... } fn init_segments(self, src_params: impl Into<HableCurve_DirectParams>) { ... } fn solve_ab( self, x0: impl Into<f32>, y0: impl Into<f32>, m: impl Into<f32>, ) -> (f32, f32) { ... } fn as_slope_intercept( self, x0: impl Into<f32>, x1: impl Into<f32>, y0: impl Into<f32>, y1: impl Into<f32>, ) -> (f32, f32) { ... } fn eval_derivative_linear_gamma( self, m: impl Into<f32>, b: impl Into<f32>, g: impl Into<f32>, x: impl Into<f32>, ) -> f32 { ... }
}

Provided Methods§

Source

fn get_white_point(self) -> f32

get_whitePoint() overload

Source

fn set_white_point(self, value: impl Into<f32>)

set_whitePoint(f32) overload

Source

fn get_inverse_white_point(self) -> f32

get_inverseWhitePoint() overload

Source

fn set_inverse_white_point(self, value: impl Into<f32>)

set_inverseWhitePoint(f32) overload

Source

fn get_x0(self) -> f32

get_x0() overload

Source

fn set_x0(self, value: impl Into<f32>)

set_x0(f32) overload

Source

fn get_x1(self) -> f32

get_x1() overload

Source

fn set_x1(self, value: impl Into<f32>)

set_x1(f32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn eval(self, x: impl Into<f32>) -> f32

Eval(f32) overload

Source

fn init( self, toe_strength: impl Into<f32>, toe_length: impl Into<f32>, shoulder_strength: impl Into<f32>, shoulder_length: impl Into<f32>, shoulder_angle: impl Into<f32>, gamma: impl Into<f32>, )

Init(f32, f32, f32, f32, f32, f32) overload

Source

fn init_segments(self, src_params: impl Into<HableCurve_DirectParams>)

InitSegments(crate::unity_engine::rendering::hablecurve::HableCurve_DirectParams) overload

Source

fn solve_ab( self, x0: impl Into<f32>, y0: impl Into<f32>, m: impl Into<f32>, ) -> (f32, f32)

SolveAB(*mutf32, *mutf32, f32, f32, f32) overload

Source

fn as_slope_intercept( self, x0: impl Into<f32>, x1: impl Into<f32>, y0: impl Into<f32>, y1: impl Into<f32>, ) -> (f32, f32)

AsSlopeIntercept(*mutf32, *mutf32, f32, f32, f32, f32) overload

Source

fn eval_derivative_linear_gamma( self, m: impl Into<f32>, b: impl Into<f32>, g: impl Into<f32>, x: impl Into<f32>, ) -> f32

EvalDerivativeLinearGamma(f32, f32, f32, f32) overload

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<__T: IHableCurve> IHableCurveMethods for __T

Available on crate feature unity_engine-rendering-hablecurve only.