Struct BspVoxelVisibility.Node ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents one split plane and the two subtrees either side of it.
csharp
public readonly struct BspVoxelVisibility.NodeConstructors ​
Node(Vector3, float, int, int) ​
Represents one split plane and the two subtrees either side of it.
csharp
public Node(Vector3 normal, float distance, int front, int back)Parameters ​
normal Vector3
Plane normal.
distance float
Plane distance along the normal.
front int
Child on the positive side.
back int
Child on the negative side.
Properties ​
Back ​
Gets the child on the negative side of the plane.
csharp
public int Back { get; }Property Value ​
Distance ​
Gets the plane distance along the normal.
csharp
public float Distance { get; }Property Value ​
Front ​
Gets the child on the positive side of the plane.
csharp
public int Front { get; }Property Value ​
Normal ​
Gets the plane normal.
csharp
public Vector3 Normal { get; }Property Value ​
Methods ​
DistanceTo(Vector3) ​
Gets how far a point sits in front of the plane.
csharp
public float DistanceTo(Vector3 point)Parameters ​
point Vector3
Point to measure.

