Vixen
02b45cc4
csharp
public readonly record struct ReferenceVolume

Something of a known size, put in the scene to judge everything else against.

Read the guide page for this →

Remarks

⚠ Origin is a fraction of the size, not a distance. A person and a door stand on the floor, a corridor is a hole you are inside, and a car sits on its wheels — so what "placed here" means differs per volume and is a property of the volume rather than of the placement. Zero is centred; −0.5 in Y puts the bottom of the box on the point.

Fields and properties (3)

  • public string Name

    What it is: a person, a door, a corridor, a car.

  • public Vector3 Size

    How big, in metres — width, height and depth.

  • public Vector3 Origin

    Where its box sits relative to the point it is placed at.

Methods (2)

  • public ReferenceVolume(string Name, Vector3 Size, Vector3 Origin)

    Something of a known size, put in the scene to judge everything else against.

  • public Vector3 CentreAt(Vector3 at)

    Where the box's centre goes when the volume is placed at a point.

Used by (7)

  • EditorApplicationVixen.Editor.App
  • PrecisionTestsVixen.Editor.SceneView.Tests
  • ReferenceVolumeSetVixen.Editor.SceneView
  • ReferenceVolumesVixen.Editor.SceneView
  • SceneLinesVixen.Editor.SceneView
  • ViewportIdsVixen.Editor.App
  • WorkPlaneCommandTestsVixen.Editor.App.Tests