public BasePlot(List <Vector2> newNodes, float minimumBoundaryPointDistance = 0) { _pointsV2 = new Vector2[0]; _externals = new bool[0]; Init(newNodes); _splitSettings = new SplitSettings(minimumBoundaryPointDistance); CalculateBoundaryPoints(); }
public Subplot(Vector2[] newPoints, SplitSettings splitSettings, bool[] externals = null) : base(newPoints) { if (externals != null) { _externals = externals; } else { _externals = new bool[_pointsV2.Length]; } _splitSettings = splitSettings; CalculateSubplotValues(); }
public Subplot(List <Vector2> newPoints, SplitSettings splitSettings, List <bool> externals = null) : base(newPoints) { if (externals != null) { int dataSize = newPoints.Count; bool[] ext = new bool[dataSize]; for (int i = 0; i < dataSize; i++) { ext[i] = externals[i]; } _externals = ext; } else { _externals = new bool[_pointsV2.Length]; } _splitSettings = splitSettings; CalculateSubplotValues(); }
public BasePlot(Vector2Int[] newPoints, float minimumBoundaryPointDistance = 0) { Init(newPoints); _splitSettings = new SplitSettings(minimumBoundaryPointDistance); CalculateBoundaryPoints(); }