CanvasMap
Getting Started Tutorials 3D Reference

Class CMUtilityBezier

CMUtilityBezier
Utilities for creating Bezier curves.


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

Static Functions

ReturnsFunctionThrows
ReversePoints()
GetCurveWithArrow(Xs, Ys, BarbWidth, BarbLength, ShaftWidth, HeadLength)

Static Functions

ReversePoints()

Utility function to revserse the order of the points in an array

GetCurveWithArrow(Xs, Ys, BarbWidth, BarbLength, ShaftWidth, HeadLength)

Return a set of X and Y coordinates that represent the outline of a curve that has width
and has an arrow at the end.

Parameters:
    Xs - horizontal coordinate array of control points to follow.
    Ys - horizontal coordinate array of control points to follow.
    BarbWidth - Width of the bard of the arrow
    BarbLength - Length of the portion of the arrow that is before the connection between the curve and the arrow head
    ShaftWidth - Width of the arrow shaft (i.e. the width of the curve)
    HeadLength - Length of the head of the arrow