Vixen
02b45cc4
csharp
public readonly record struct GridLine

One line of the grid.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A colour at each end, because a grid line has to be able to disappear. A level is a finite number of finite lines and its far edge is a hard rectangle drawn across the scene unless the ends fade out — which is the one thing that makes a bounded grid read as an unbounded floor. LineVertex has carried a colour per vertex from the start for exactly this; the grid was the caller that was not using it.

Fields and properties (4)

  • public Vector3 From

    One end, in world space.

  • public Vector3 To

    The other.

  • public Color4 Colour

    What to draw it in at , alpha included.

  • public Color4 ToColour

    What to draw it in at .

Methods (2)

Used by (5)

  • GridTestsVixen.Editor.SceneView.Tests
  • SceneGridVixen.Editor.SceneView
  • SceneLinesVixen.Editor.SceneView
  • SceneTestsVixen.Editor.SceneView.Tests
  • WorkPlaneTestsVixen.Editor.SceneView.Tests