Class HableCurve.Segment | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class HableCurve.Segment

    Individual curve segment.

    Inheritance
    Object
    HableCurve.Segment
    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.

    In This Article
    • Fields
      • B
      • lnA
      • offsetX
      • offsetY
      • scaleX
      • scaleY
    • Methods
      • Eval(Single)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023