fCalculatePolygonCoordinate: Draws a block based on the angle bucket and length bucket,...

fCalculatePolygonCoordinateR Documentation

Draws a block based on the angle bucket and length bucket, respectively indicated by x and y, used by fPlotSonar

Description

Hard to describe it. Play with the example

Usage

fCalculatePolygonCoordinate(
  nAngleMin_rad,
  nAngleMax_rad,
  nRadiusMin,
  nRadiusMax,
  fTrigFunction
)

Examples

plot(
   fCalculatePolygonCoordinate(
      nAngleMin_rad = pi/4,
      nAngleMax_rad = pi/2,
      nRadiusMin = 1,
      nRadiusMax = 2,
      cos
   ),
   fCalculatePolygonCoordinate(
      nAngleMin_rad = pi/4,
      nAngleMax_rad = pi/2,
      nRadiusMin = 1,
      nRadiusMax = 2,
      sin
   )
)

thecomeonman/CodaBonito documentation built on April 24, 2023, 11:41 a.m.