lineToCircle() public static method

public static lineToCircle ( Vector2 start, Vector2 end, Circle s, RaycastHit &hit ) : bool
start Microsoft.Xna.Framework.Vector2
end Microsoft.Xna.Framework.Vector2
s Circle
hit RaycastHit
return bool
コード例 #1
0
 public override bool collidesWithLine(Vector2 start, Vector2 end, out RaycastHit hit)
 {
     hit = new RaycastHit();
     return(ShapeCollisions.lineToCircle(start, end, this, out hit));
 }