s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Common Structs
Frustum
chevron_left
Common Structs
struct
Frustum
search
Constructors
functions
Frustum
Fields
crop_din
BottomPlane
crop_din
FarPlane
crop_din
LeftPlane
crop_din
NearPlane
crop_din
RightPlane
crop_din
TopPlane
Methods
functions
GetBBox
functions
GetCorner
functions
IsInside
Static Methods
functions
FromCorners
Frustum
Represents a frustum.
struct
Sandbox
.
sealed
Sandbox.System
build
Constructors
1
Frustum
(
right
,
left
,
top
,
bottom
,
near
,
far
)
Creates a frustum from 6 planes.
crop_din
Fields
6
BottomPlane
Plane
Bottom plane of the frustum, pointing inwards.
FarPlane
Plane
Far plane of the frustum, pointing inwards.
LeftPlane
Plane
Left plane of the frustum, pointing inwards.
NearPlane
Plane
Near plane of the frustum, pointing inwards.
RightPlane
Plane
Right plane of the frustum, pointing inwards.
TopPlane
Plane
Top plane of the frustum, pointing inwards.
functions
Methods
3
GetBBox
(
)
BBox
Returns the AABB of this frustum.
GetCorner
(
i
)
Nullable`1
Returns the corner point of one of the 8 corners. This may return null if i is > 7 or the frustum is invalid.
IsInside
(
point
)
bool
Returns whether the given point is inside this frustum.
functions
Static Methods
1
FromCorners
(
tl
,
tr
,
br
,
bl
,
near
,
far
)
Frustum
Create a frustum from four corner rays. These rays commonly come from SceneCamera.GetRay.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.