FConvexVolume

[FConvexVolume](API\Runtime\Engine\FConvexVolume)

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ConvexVolume.h

Include

#include "ConvexVolume.h"

Syntax

struct FConvexVolume

Remarks

Variables

Name Description

Public variable

FPermutedPlaneA...

 

PermutedPlanes

This is the set of planes pre-permuted to SSE/Altivec form

Public variable

FPlaneArray

 

Planes

Constructors

Name Description

Public function

FConvexVolume()

Public function

FConvexVolume

(
    const TArray< FPlane, TInlineAlloca...
)

Builds the set of planes used to clip against.

Functions

Name Description

Public function Const

bool

 

ClipPolygon

(
    FPoly& Polygon
)

Clips a polygon to the volume.

Public function Const

float

 

DistanceTo

(
    const FVector& Point
)

Calculates the maximum perpendicular distance of a point to the plains of the convex volume.

Public function Const

FOutcode

 

GetBoxIntersectionOutcode

(
    const FVector& Origin,
    const FVector& Extent
)

Public function

void

 

Init()

Builds the permuted planes for SSE/Altivec fast clipping

Public function Const

bool

 

IntersectBox

(
    const FVector& Origin,
    const FVector& Extent
)

Intersection test with a translated axis-aligned box.

Public function Const

bool

 

IntersectBox

(
    const FVector& Origin,
    const FVector& Extent,
    bool& bOutFullyContained
)

Intersection test with a translated axis-aligned box.

Public function Const

bool

 

IntersectBox

(
    const FVector& Origin,
    const FVector& Translation,
    const FVector& Extent
)

Intersection test with a translated axis-aligned box.

Public function Const

bool

 

IntersectLineSegment

(
    const FVector& Start,
    const FVector& End
)

Intersection test with line segment

Public function Const

bool

 

IntersectPoint

(
    const FVector& Point
)

Determines whether the given point lies inside the convex volume

Public function Const

bool

 

IntersectSphere

(
    const FVector& Origin,
    const float& Radius
)

Intersection test with a sphere

Public function Const

bool

 

IntersectSphere

(
    const FVector& Origin,
    const float& Radius,
    bool& bOutFullyContained
)

Intersection test with a sphere

Typedefs

Name

Description

FPermutedPlaneArray

FPlaneArray