Capsule.fromPoints constructor

Capsule.fromPoints({
  1. required List<Vector2> points,
  2. double radiusTop = 1,
  3. double radiusBottom = 1,
  4. double height = 1,
  5. int numSegments = 8,
})

@param radiusTop The radius of the top of the Cylinder. @param radiusBottom The radius of the bottom of the Cylinder. @param height The height of the Cylinder. @param numSegments The number of segments to build the cylinder out of.

Implementation

Capsule.fromPoints({
  required super.points,
  this.radiusTop = 1,
  this.radiusBottom = 1,
  this.height = 1,
  super.numSegments = 8,
}):super(
  type: ShapeType.capsule
);