Back to FabImage Library Lite website

You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » ReverseSegment

ReverseSegment


Header: FIL.h
Namespace: fil

Swaps the two endpoints of a segment.

Syntax

void fil::ReverseSegment
(
	const fil::Segment2D& inSegment,
	fil::Segment2D& outSegment
)

Parameters

Name Type Default Description
Input value
inSegment const Segment2D&
Output value
outSegment Segment2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inSegment and outSegment

Read more about In-place Computation.

Examples

ReverseSegment performed on the sample segment.