Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2PolygonShape

Hierarchy

Index

Constructors

constructor

Properties

Readonly m_centroid

m_centroid: b2Vec2 = new b2Vec2(0, 0)

m_count

m_count: number = 0

m_normals

m_normals: b2Vec2[] = []

m_radius

m_radius: number = 0

Readonly m_type

m_type: b2ShapeType = b2ShapeType.e_unknown

m_vertices

m_vertices: b2Vec2[] = []

Static Private ComputeAABB_s_v

ComputeAABB_s_v: b2Vec2 = new b2Vec2()

Static Private ComputeCentroid_s_e1

ComputeCentroid_s_e1: b2Vec2 = new b2Vec2()

Static Private ComputeCentroid_s_e2

ComputeCentroid_s_e2: b2Vec2 = new b2Vec2()

Static Private ComputeCentroid_s_pRef

ComputeCentroid_s_pRef: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_distance

ComputeDistance_s_distance: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_minDistance

ComputeDistance_s_minDistance: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_normalForMaxDistance

ComputeDistance_s_normalForMaxDistance: b2Vec2 = new b2Vec2()

Static Private ComputeDistance_s_pLocal

ComputeDistance_s_pLocal: b2Vec2 = new b2Vec2()

Static Private ComputeMass_s_center

ComputeMass_s_center: b2Vec2 = new b2Vec2()

Static Private ComputeMass_s_e1

ComputeMass_s_e1: b2Vec2 = new b2Vec2()

Static Private ComputeMass_s_e2

ComputeMass_s_e2: b2Vec2 = new b2Vec2()

Static Private ComputeMass_s_s

ComputeMass_s_s: b2Vec2 = new b2Vec2()

Static Private ComputeSubmergedArea_s_center

ComputeSubmergedArea_s_center: b2Vec2 = new b2Vec2()

Static Private ComputeSubmergedArea_s_intoVec

ComputeSubmergedArea_s_intoVec: b2Vec2 = new b2Vec2()

Static Private ComputeSubmergedArea_s_md

ComputeSubmergedArea_s_md: b2MassData = new b2MassData()

Static Private ComputeSubmergedArea_s_normalL

ComputeSubmergedArea_s_normalL: b2Vec2 = new b2Vec2()

Static Private ComputeSubmergedArea_s_outoVec

ComputeSubmergedArea_s_outoVec: b2Vec2 = new b2Vec2()

Static Private RayCast_s_d

RayCast_s_d: b2Vec2 = new b2Vec2()

Static Private RayCast_s_p1

RayCast_s_p1: b2Vec2 = new b2Vec2()

Static Private RayCast_s_p2

RayCast_s_p2: b2Vec2 = new b2Vec2()

Static Private Set_s_r

Set_s_r: b2Vec2 = new b2Vec2()

Static Private Set_s_v

Set_s_v: b2Vec2 = new b2Vec2()

Static Private TestPoint_s_pLocal

TestPoint_s_pLocal: b2Vec2 = new b2Vec2()

Static Private Validate_s_e

Validate_s_e: b2Vec2 = new b2Vec2()

Static Private Validate_s_v

Validate_s_v: b2Vec2 = new b2Vec2()

Methods

Clone

ComputeAABB

  • Parameters

    Returns void

ComputeDistance

ComputeMass

  • ComputeMass(massData: b2MassData, density: number): void
  • Parameters

    Returns void

ComputeSubmergedArea

Copy

Dump

  • Dump(log: (format: string, ...args: any[]) => void): void
  • Parameters

    • log: (format: string, ...args: any[]) => void
        • (format: string, ...args: any[]): void
        • Parameters

          • format: string
          • Rest ...args: any[]

          Returns void

    Returns void

GetChildCount

  • GetChildCount(): number
  • Returns number

GetType

RayCast

Set

  • Parameters

    • vertices: XY[]

    Returns b2PolygonShape

  • Parameters

    • vertices: XY[]
    • count: number

    Returns b2PolygonShape

  • Parameters

    • vertices: number[]

    Returns b2PolygonShape

SetAsBox

  • Parameters

    • hx: number
    • hy: number
    • Optional center: XY
    • Default value angle: number = 0

    Returns b2PolygonShape

SetupDistanceProxy

TestPoint

  • Parameters

    Returns boolean

Validate

  • Validate(): boolean
  • Returns boolean

Set

  • Parameters

    • vertices: (index: number) => XY
        • (index: number): XY
        • Parameters

          • index: number

          Returns XY

    • count: number

    Returns b2PolygonShape

Static ComputeCentroid

  • Parameters

    Returns b2Vec2

Generated using TypeDoc