Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Circle

圆路径类.

Hierarchy

  • Circle

Implements

Index

Constructors

Properties

Constructors

constructor

  • 圆路径的类,从半径创建。圆心将为 [0, 0].

    Example:

    var c = new vjgeo.paths.Circle(7);
    

    Parameters

    • radius: number

      The radius of the circle.

    • Optional data: IProperties

      properities data

    Returns Circle

  • 圆路径的类,从圆心和半径创建.

    Example:

    var c = new vjgeo.paths.Circle([10, 10], 7);
    

    Parameters

    • origin: IPoint

      The center point of the circle.

    • radius: number

      The radius of the circle.

    • Optional data: IProperties

      properities data

    Returns Circle

  • 圆形路径类,从 2 个点创建.

    Example:

    var c = new vjgeo.paths.Circle([5, 15], [25, 15]);
    

    Parameters

    • pointA: IPoint

      First point on the circle.

    • pointB: IPoint

      Second point on the circle.

    • Optional data: IProperties

      properities data

    Returns Circle

  • 圆形路径的类,从 3 个点创建.

    Example:

    var c = new vjgeo.paths.Circle([0, 0], [0, 10], [20, 0]);
    

    Parameters

    • pointA: IPoint

      First point on the circle.

    • pointB: IPoint

      Second point on the circle.

    • pointC: IPoint

      Third point on the circle.

    • Optional data: IProperties

      properities data

    Returns Circle

Properties

data

origin

origin: IPoint

radius

radius: number

type

type: string

Generated using TypeDoc