Table of Contents

Method IsVisible

Namespace
Pinwheel.Beam
Assembly
Pinwheel.Beam.Runtime.dll

IsVisible(Plane[], Matrix4x4)

Check if a volume is visible by a camera

public static bool IsVisible(Plane[] planes, Matrix4x4 localToWorldMatrix)

Parameters

planes Plane[]

The camera's frustum planes

localToWorldMatrix Matrix4x4

The volume's transfromation matrix

Returns

bool

true if the volume is visible

IsVisible(Plane[], Vector3[])

Check if a volume is visible by a camera

public static bool IsVisible(Plane[] planes, Vector3[] pointsWS)

Parameters

planes Plane[]

The camera's frustum planes

pointsWS Vector3[]

The 8 corners of the volume

Returns

bool