public TestPoint ( |
||
transform | ||
p | ||
return | bool |
public override bool TestPoint(Transform transform, Vec2 p)
{
Vec2 center = pool1;
Rot.MulToOutUnsafe(transform.Q, P, center);
center.AddLocal(transform.P);
Vec2 d = center.SubLocal(p).NegateLocal();
return Vec2.Dot(d, d) <= Radius * Radius;
}