Box2D.Collision.Shapes.b2EdgeShape
Class b2EdgeShape
Namespace: Box2D.Collision.Shapes
Assembly: Box2D.dll, box2d.iOS.dll
public class b2EdgeShape : b2Shape
Inheritance
object ← b2Shape ← b2EdgeShape
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
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
b2EdgeShape()
public b2EdgeShape()
b2EdgeShape(b2EdgeShape)
public b2EdgeShape(b2EdgeShape e)
Parameters
Fields
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex0
public bool HasVertex0
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
HasVertex3
public bool HasVertex3
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex0
public b2Vec2 Vertex0
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex1
public b2Vec2 Vertex1
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex2
public b2Vec2 Vertex2
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Vertex3
public b2Vec2 Vertex3
Field Value
Methods
Clone()
Clone the concrete shape using the provided allocator.
public override b2Shape Clone()
Returns
Clone()
Clone the concrete shape using the provided allocator.
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
Clone()
public override b2Shape Clone()
Returns
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
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
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
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
ComputeMass(float)
public override b2MassData ComputeMass(float density)
Parameters
density
float
Returns
GetChildCount()
Get the number of child primitives.
public override int GetChildCount()
Returns
GetChildCount()
Get the number of child primitives.
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
GetChildCount()
public override int GetChildCount()
Returns
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
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
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
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
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
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
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
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
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
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
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
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
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
Set(b2Vec2, b2Vec2)
public virtual void Set(b2Vec2 v1, b2Vec2 v2)
Parameters
v1
b2Vec2
v2
b2Vec2
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
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
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2
Returns
TestPoint(ref b2Transform, b2Vec2)
public override bool TestPoint(ref b2Transform xf, b2Vec2 p)
Parameters
xf
b2Transform
p
b2Vec2