Class HableCurve.Segment
Individual curve segment.
Namespace: UnityEngine.Rendering
Syntax
public class Segment : object
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. |