Struct BspVoxelVisibility.Node ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents one split plane and the two subtrees either side of it.
csharp
public readonly record struct BspVoxelVisibility.Node : IEquatable<BspVoxelVisibility.Node>Implements ​
IEquatable<BspVoxelVisibility.Node>
Constructors ​
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 ​
Child on the negative side.
csharp
public int Back { get; init; }Property Value ​
int
Distance ​
Plane distance along the normal.
csharp
public float Distance { get; init; }Property Value ​
float
Front ​
Child on the positive side.
csharp
public int Front { get; init; }Property Value ​
int
Normal ​
Plane normal.
csharp
public Vector3 Normal { get; init; }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.
Returns ​
float

