Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 3D Spatial Transforms »
ResizeSegment3D_Delta
Changes length of a segment in 3D by adding a value preserving its orientation and center point.
Syntax
C++
C#
void avl::ResizeSegment3D_Delta
(
const avl::Segment3D& inSegment3D,
float inDelta,
float inAnchor,
avl::Segment3D& outSegment3D
)
void ResizeSegment3D_Delta
(
Segment3D inSegment3D,
float inDelta,
float inAnchor,
out Segment3D outSegment3D
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
|
inSegment3D |
const Segment3D& |
|
|
|
|
inDelta |
float |
|
0.0f |
Value added to segment length |
|
inAnchor |
float |
- - |
0.5f |
Anchor point, 0 means the beginning, 1 means the end of the segment |
|
outSegment3D |
Segment3D& |
|
|
|
Errors
Error type |
Description |
DomainError |
Negative segment length in ResizeSegment3D_Delta. |