Silverspawn Check this link. May be its of help to you https://www.euclideanspace.com/maths/...tion/index.htm Mahesh