Skip to content

Type error in ScaleExponents.cs #32

@Ramarren

Description

@Ramarren

Math.Pow has a result of type double. In line 218:

v[i] = (float)v2[i] * Math.Pow(factor.relative.linear, exponent);

it propagates to the multiplication, and causes an Argument Exception, since v[i] is of type float in this branch.
The line should be:

v[i] = (float)((float)v2[i] * Math.Pow(factor.relative.linear, exponent));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions