Line.newPoint C# (CSharp) Method

newPoint() private method

private newPoint ( int x, float y ) : Vector3
x int
y float
return Vector3
    private Vector3 newPoint(int x, float y)
    {
        _lastVal = Mathf.Clamp(y, 0, graphHeight);
        return new Vector3(
            x * _ratioW + _panelInfos.panelPos.x + 0.001f*_panelInfos.padding,
            _lastVal * _ratioH + _panelInfos.panelPos.y + 0.001f*_panelInfos.padding,
            _panelInfos.panelPos.z + (y > graphHeight || y < 0 ? 0.01f : -0.01f)
        );
    }

Same methods

Line::newPoint ( int x ) : Vector3