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

Method IsValid

CommonB2Math.go:133–135  ·  view source on GitHub ↗

Does this vector contain finite coordinates?

()

Source from the content-addressed store, hash-verified

131
132/// Does this vector contain finite coordinates?
133func (v B2Vec2) IsValid() bool {
134 return B2IsValid(v.X) && B2IsValid(v.Y)
135}
136
137/// Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
138func (v B2Vec2) Skew() B2Vec2 {

Callers 2

NewB2BodyFunction · 0.45
MakeB2MouseJointFunction · 0.45

Calls 1

B2IsValidFunction · 0.85

Tested by

no test coverage detected