VISU - PHP Game Framework

Frustum
in package

Table of Contents

Properties

$bottom  : Plane
$far  : Plane
$left  : Plane
$near  : Plane
$right  : Plane
$top  : Plane
$planes  : array<string|int, Plane>
Holds an additional reference to the planes that can be accessed by index

Methods

__construct()  : mixed
Frustum is represented by 6 planes
fromMat4()  : self
isSphereInView()  : bool
Returns boolean if a given sphere is visible in the frustum

Properties

$planes

Holds an additional reference to the planes that can be accessed by index

private array<string|int, Plane> $planes = []

Methods

fromMat4()

public static fromMat4(Mat4 $mat) : self
Parameters
$mat : Mat4
Return values
self

isSphereInView()

Returns boolean if a given sphere is visible in the frustum

public isSphereInView(Vec3 $center, float $radius) : bool
Parameters
$center : Vec3
$radius : float
Return values
bool

        
On this page

Search results