[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Code: Center of Triangle
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Code: Center of Triangle
- From: "Patrick Mullen" <saluk64007@xxxxxxxxx>
- Date: Thu, 27 Sep 2007 22:41:16 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 28 Sep 2007 01:41:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=oTkYAQZnIvCFZW4G/SXEu4fMjkziPVRVU6+CjYauPLI=; b=ip858JO4/M3r94AY0Pk7dKk2ZtPoTquL4FZzXhwD5lxeqwjEN0JkuzA12nmyNw0oCXuq/ucdKoqGnKDhj/3Z0w3p1H0GrQ+M6DjhiHxzJdUXa7EyaeCUJX2i3dFjX0KNhSWki6QcGOD3wAAgFAGQ3dHAKEjDcQ/+6vorJl9PGs4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=N1KyBlFOjM2po6Zuv0kJLGX85GQI2HTRyjWRAfTFQWh1skTdMtO4nCkKljP0F+pRx1B2ophz0t0XpDsFLkjFyfG0anM4PnHps8+X9OI6vaL9paLsexDzdamaUi5breVoicLwIGfrvhWIB6CfZ9JN7Fo1U2hNU39tS3/i2lXNVPg=
- In-reply-to: <46FC9301.5070804@xxxxxxxxxx>
- References: <46FC01AF.9090207@xxxxxxxxxxxx> <46FC9301.5070804@xxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Yeah, shouldn't it be math.sqrt(dist)?
Although you might want to just return the distance^2 so the user can decide whether a sqrt is necessary or not.