MCPcopy Create free account
hub / github.com/ByteArena/box2d / Clone

Method Clone

CollisionB2ShapeEdge.go:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (edge B2EdgeShape) Clone() B2ShapeInterface {
50 clone := NewB2EdgeShape()
51 clone.M_vertex0 = edge.M_vertex0
52 clone.M_vertex1 = edge.M_vertex1
53 clone.M_vertex2 = edge.M_vertex2
54 clone.M_vertex3 = edge.M_vertex3
55 clone.M_hasVertex0 = edge.M_hasVertex0
56 clone.M_hasVertex3 = edge.M_hasVertex3
57
58 return clone
59}
60
61func (edge *B2EdgeShape) Destroy() {}
62

Callers

nothing calls this directly

Calls 1

NewB2EdgeShapeFunction · 0.85

Tested by

no test coverage detected