Scale
public abstract class ScaleBase class for all scale types. Maps data values to visual positions.
Fields
Section titled “Fields”
_domain
Section titled “_domain”protected float2 _domainNo description is available for this member.
Returns
Unity.Mathematics.float2 — No return description is available.
_range
Section titled “_range”protected float2 _rangeNo description is available for this member.
Returns
Unity.Mathematics.float2 — No return description is available.
_inverted
Section titled “_inverted”protected bool _invertedNo description is available for this member.
Returns
System.Boolean — No return description is available.
_clamped
Section titled “_clamped”protected bool _clampedNo description is available for this member.
Returns
System.Boolean — No return description is available.
Properties
Section titled “Properties”
Domain
Section titled “Domain”public float2 Domain { get; }No description is available for this member.
Returns
Unity.Mathematics.float2 — No return description is available.
public float2 Range { get; }No description is available for this member.
Returns
Unity.Mathematics.float2 — No return description is available.
Inverted
Section titled “Inverted”public bool Inverted { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Clamped
Section titled “Clamped”public bool Clamped { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Constructors
Section titled “Constructors”
Scale(float, float, float, float)
Section titled “Scale(float, float, float, float)”public Scale(float domainMin, float domainMax, float rangeMin, float rangeMax)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
domainMin |
System.Single | |
domainMax |
System.Single | |
rangeMin |
System.Single | |
rangeMax |
System.Single |
Methods
Section titled “Methods”
Map(float)
Section titled “Map(float)”public abstract float Map(float value)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
value |
System.Single |
Returns
System.Single — No return description is available.
Invert(float)
Section titled “Invert(float)”public abstract float Invert(float position)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
position |
System.Single |
Returns
System.Single — No return description is available.
GenerateTicks(int)
Section titled “GenerateTicks(int)”public abstract float[] GenerateTicks(int count)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
count |
System.Int32 |
Returns
System.Single[] — No return description is available.
SetDomain(float, float)
Section titled “SetDomain(float, float)”public Scale SetDomain(float min, float max)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
min |
System.Single | |
max |
System.Single |
Returns
ChartGuru.Scale — No return description is available.
SetRange(float, float)
Section titled “SetRange(float, float)”public Scale SetRange(float min, float max)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
min |
System.Single | |
max |
System.Single |
Returns
ChartGuru.Scale — No return description is available.
SetInverted(bool)
Section titled “SetInverted(bool)”public Scale SetInverted(bool inverted)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
inverted |
System.Boolean |
Returns
ChartGuru.Scale — No return description is available.
SetClamped(bool)
Section titled “SetClamped(bool)”public Scale SetClamped(bool clamped)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
clamped |
System.Boolean |
Returns
ChartGuru.Scale — No return description is available.