Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 3D » Geometry 3D Basics » CreateSegment3D

CreateSegment3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Produces a segment in 3D of given parameters.

Syntax

C++
C#
 
void avl::CreateSegment3D
(
	const avl::Point3D& inPoint3D,
	float inPointAnchor,
	const avl::Vector3D& inDirectionVector,
	float inLength,
	avl::Segment3D& outSegment3D
)

Parameters

Name Type Range Default Description
Input value inPoint3D const Point3D& A point on the created segment
Input value inPointAnchor float 0.0 - 1.0 Anchor point, 0 means the beginning, 1 means the end of the segment
Input value inDirectionVector const Vector3D& Desired direction of the segment
Input value inLength float Desired length of the segment in pixels
Output value outSegment3D Segment3D& The resulting segment