docs.unity.cn
    Show / Hide Table of Contents

    Class HableCurve.Segment

    Individual curve segment.

    Inheritance
    Object
    HableCurve.Segment
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public class Segment

    Fields

    B

    B constant in the power curve y = e^(ln(A) + B*ln(x)).

    Declaration
    public float B
    Field Value
    Type Description
    Single

    lnA

    ln(A) constant in the power curve y = e^(ln(A) + B*ln(x)).

    Declaration
    public float lnA
    Field Value
    Type Description
    Single

    offsetX

    The offset of the segment on the X axis.

    Declaration
    public float offsetX
    Field Value
    Type Description
    Single

    offsetY

    The offset of the segment on the Y axis.

    Declaration
    public float offsetY
    Field Value
    Type Description
    Single

    scaleX

    The scale of the segment on the X axis.

    Declaration
    public float scaleX
    Field Value
    Type Description
    Single

    scaleY

    The scale of the segment on the Y axis.

    Declaration
    public float scaleY
    Field Value
    Type Description
    Single

    Methods

    Eval(Single)

    Evaluate a point on the curve.

    Declaration
    public float Eval(float x)
    Parameters
    Type Name Description
    Single x

    The point to evaluate.

    Returns
    Type Description
    Single

    The value of the curve, at the point specified.

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023