Skip to content

Scale

ClassChartGuruChartGuru
public abstract class Scale

Base class for all scale types. Maps data values to visual positions.

protected float2 _domain

No description is available for this member.

Returns

Unity.Mathematics.float2 — No return description is available.

protected float2 _range

No description is available for this member.

Returns

Unity.Mathematics.float2 — No return description is available.

protected bool _inverted

No description is available for this member.

Returns

System.Boolean — No return description is available.

protected bool _clamped

No description is available for this member.

Returns

System.Boolean — No return description is available.

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.

public bool Inverted { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public bool Clamped { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

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

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.

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.

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.

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.

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.

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.

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.