IF_AABBSetCenterHalfExtents (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

This chapter provides information on:

Task

Sets the center and half extents

Description

This method is used to initialize an AABB object by setting its center and half extents; the minimum and the maximum vertices and the full list of vertices is evaluated accordingly.

This method can be called multiple times to reconfigure the object.

i_stHalfExtents parameters (XZ plane view):

i_stHalfExtents parameters (XY-plane view):

Interface

Access: PUBLIC

Input

Data type

Description

i_stCenter

SE_Math.ST_Vector3D

The center of the AABB bounding volume.

i_stHalfExtents

SE_Math.ST_Vector3D

Each element of this 3D vector represents the half extents of the AABB object along the X-, Y- anx Z-axes.

Output

Data type

Description

q_xError

BOOL

The output is set to TRUE if an error has been detected during the execution.

q_etResult

ET_Result

POU-specific output on the diagnostic; q_xError = FALSE -> Status message; q_xError = TRUE -> Diagnostic message.

q_sResultMsg

STRING(80)

Event-triggered message that gives additional information on the diagnostic state.