Back to FabImage Library website
You are here: Start » Function Reference » Geometry 3D Spatial Transforms » RescaleSegment3D

RescaleSegment3D
Header: | FIL.h |
---|---|
Namespace: | fil |
Lengthens or shortens a segment in 3D relatively.
Syntax
C++
C#
void fil::RescaleSegment3D ( const fil::Segment3D& inSegment3D, ftl::Optional<const fil::Point3D&> inReferencePoint, float inScale, bool inInverse, fil::Segment3D& outSegment3D )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegment3D | const Segment3D& | Input segment in 3D | |
![]() |
inReferencePoint | Optional<const Point3D&> | NIL | The point to which all distances change linearly (the mass center by default) |
![]() |
inScale | float | 1.0f | Scaling factor (negative values invert the segment) |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outSegment3D | Segment3D& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in an inverse rescaling of a segment in RescaleSegment3D. |