Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace angle

Index

Functions

mirror

  • mirror(angleInDegrees: number, mirrorX: boolean, mirrorY: boolean): number
  • 在 x 轴和 y 轴上镜像的角度.

    Parameters

    • angleInDegrees: number

      The angle to mirror.

    • mirrorX: boolean

      Boolean to mirror on the x axis.

    • mirrorY: boolean

      Boolean to mirror on the y axis.

    Returns number

    Mirrored angle.

noRevolutions

  • noRevolutions(angleInDegrees: number): number
  • 确保角度不大于 360

    Parameters

    • angleInDegrees: number

      角度(度).

    Returns number

    角度但不大于360度.

ofArcEnd

  • 获取圆弧的结束角度,确保大于其起始角度.

    Parameters

    Returns number

    圆弧的结束角度.

ofArcMiddle

  • ofArcMiddle(arc: IPathArc, ratio?: number): number
  • 获取圆弧的起始角度和结束角度中间的角度.

    Parameters

    • arc: IPathArc

      圆弧路径对象.

    • Default value ratio: number = 0.5

      介于 0 和 1 之间的可选数字,指定起点和终点角度之间的百分比。默认值为 .5

    Returns number

    中间角度.

ofArcSpan

  • 圆弧的起始角和终点角之间的总角度.

    Parameters

    Returns number

    圆弧角度.

ofChainLinkJoint

  • 获取 2 个链节之间的接头角度.

    Parameters

    Returns number

    Angle between chain links.

ofLineInDegrees

  • 线路径的角度.

    Parameters

    Returns number

    线路径的角度(以度为单位).

ofPointInDegrees

  • ofPointInDegrees(origin: IPoint, pointToFindAngle: IPoint): number
  • 两点组成线的角度,以度为单位.

    Parameters

    • origin: IPoint

      Point of origin of the angle.

    • pointToFindAngle: IPoint

      The point to find the angle.

    Returns number

    Angle of the line throught the point, in degrees.

ofPointInRadians

  • ofPointInRadians(origin: IPoint, pointToFindAngle: IPoint): number
  • 两点组成线的角度,以弧度为单位.

    Parameters

    • origin: IPoint

      Point of origin of the angle.

    • pointToFindAngle: IPoint

      The point to find the angle.

    Returns number

    Angle of the line throught the point, in radians.

toDegrees

  • toDegrees(angleInRadians: number): number
  • 将角度从弧度转换为度.

    Parameters

    • angleInRadians: number

      弧度.

    Returns number

    角度.

toRadians

  • toRadians(angleInDegrees: number): number
  • 将角度从度转换为弧度.

    Parameters

    • angleInDegrees: number

      角度(度).

    Returns number

    弧度.

Generated using TypeDoc