Skip to main content

Box2D.Collision.Shapes.b2PolygonShape


Class b2PolygonShape

Namespace: Box2D.Collision.Shapes
Assembly: Box2D.dll, box2d.iOS.dll

public class b2PolygonShape : b2Shape

Inheritance

objectb2Shapeb2PolygonShape

Inherited Members

b2Shape.ShapeType, b2Shape.Radius, b2Shape.Clone(), b2Shape.GetShapeType(), b2Shape.GetChildCount(), b2Shape.TestPoint(ref b2Transform, b2Vec2), b2Shape.RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int), b2Shape.ComputeAABB(out b2AABB, ref b2Transform, int), b2Shape.ComputeMass(float), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

b2PolygonShape()

public b2PolygonShape()

b2PolygonShape(b2PolygonShape)

public b2PolygonShape(b2PolygonShape copy)

Parameters

copy b2PolygonShape

Fields

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Centroid

public b2Vec2 Centroid

Field Value

b2Vec2

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Normals

public b2Vec2[] Normals

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Vertices

public b2Vec2[] Vertices

Field Value

b2Vec2[]

Properties

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

VertexCount

public int VertexCount { get; }

Property Value

int

Methods

Clone()

Clone the concrete shape using the provided allocator.

public override b2Shape Clone()

Returns

b2Shape

Clone()

Clone the concrete shape using the provided allocator.

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

Clone()

public override b2Shape Clone()

Returns

b2Shape

ComputeAABB(out b2AABB, ref b2Transform, int)

Given a transform, compute the associated axis aligned bounding box for a child shape. @param aabb returns the axis aligned box. @param xf the world transform of the shape. @param childIndex the child shape

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

Given a transform, compute the associated axis aligned bounding box for a child shape. @param aabb returns the axis aligned box. @param xf the world transform of the shape. @param childIndex the child shape

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeAABB(out b2AABB, ref b2Transform, int)

public override void ComputeAABB(out b2AABB output, ref b2Transform xf, int childIndex)

Parameters

output b2AABB

xf b2Transform

childIndex int

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeCentroid(b2Vec2[], int)

public static b2Vec2 ComputeCentroid(b2Vec2[] vs, int count)

Parameters

vs b2Vec2[]

count int

Returns

b2Vec2

ComputeMass(float)

Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin. @param massData returns the mass data for this shape. @param density the density in kilograms per meter squared.

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin. @param massData returns the mass data for this shape. @param density the density in kilograms per meter squared.

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

ComputeMass(float)

public override b2MassData ComputeMass(float density)

Parameters

density float

Returns

b2MassData

GetChildCount()

Get the number of child primitives.

public override int GetChildCount()

Returns

int

GetChildCount()

Get the number of child primitives.

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

GetChildCount()

public override int GetChildCount()

Returns

int

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

Cast a ray against a child shape. @param output the ray-cast results. @param input the ray-cast input parameters. @param transform the transform to be applied to the shape. @param childIndex the child shape index

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

Cast a ray against a child shape. @param output the ray-cast results. @param input the ray-cast input parameters. @param transform the transform to be applied to the shape. @param childIndex the child shape index

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)

public override bool RayCast(out b2RayCastOutput output, b2RayCastInput input, ref b2Transform xf, int childIndex)

Parameters

output b2RayCastOutput

input b2RayCastInput

xf b2Transform

childIndex int

Returns

bool

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

Set(b2Vec2[], int)

public virtual void Set(b2Vec2[] vertices, int count)

Parameters

vertices b2Vec2[]

count int

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

SetAsBox(float, float)

public void SetAsBox(float hx, float hy)

Parameters

hx float

hy float

SetAsBox(float, float, b2Vec2, float)

public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)

Parameters

hx float

hy float

center b2Vec2

angle float

TestPoint(ref b2Transform, b2Vec2)

Test a point for containment in this shape. This only works for convex shapes. @param xf the shape world transform. @param p a point in world coordinates.

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

Test a point for containment in this shape. This only works for convex shapes. @param xf the shape world transform. @param p a point in world coordinates.

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

TestPoint(ref b2Transform, b2Vec2)

public override bool TestPoint(ref b2Transform xf, b2Vec2 p)

Parameters

xf b2Transform

p b2Vec2

Returns

bool

  • Constructors
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
    • b2PolygonShape()
    • b2PolygonShape(b2PolygonShape)
  • Fields
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Centroid
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Normals
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
    • Vertices
  • Properties
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
    • VertexCount
  • Methods
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • Clone()
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeAABB(out b2AABB, ref b2Transform, int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeCentroid(b2Vec2[], int)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • ComputeMass(float)
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • GetChildCount()
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • RayCast(out b2RayCastOutput, b2RayCastInput, ref b2Transform, int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • Set(b2Vec2[], int)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • SetAsBox(float, float)
    • SetAsBox(float, float, b2Vec2, float)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)
    • TestPoint(ref b2Transform, b2Vec2)