Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

javascript - Rotate a point (of which I have the coordinates), around another known point, by a certain desired angle

body   { margin: 0 }
#leaf  { position: absolute; left: 0px; top; 0px; background-color: silver }
#pointerM { position: absolute; width: 16px; height: 23px; background-image: url('data:image/gif;base64,R0lGODlhEAAXAIABADNj//r9/yH5BAEAAAEALAAAAAAQABcAAAIsBIKparcfmoNJTmrvy5pxzHVR2JHGYp5VOrGqe8LyTFKIZd9SPqp5w9MFEQUAOw==') }
#centerR { position: absolute; width: 16px; height: 23px; background-image: url('data:image/gif;base64,R0lGODlhEAAXAIABAPMAAPr9/yH5BAEAAAEALAAAAAAQABcAAAIsBIKparcfmoNJTmrvy5pxzHVR2JHGYp5VOrGqe8LyTFKIZd9SPqp5w9MFEQUAOw==') }
<div id="leaf" style="width: 180px; height: 180px">
    <div id="pointerM" style="left: 104px; top: 30px"></div>
    <div id="centerR" style="left: 90px; top: 90px"></div>
</div>
question from:https://stackoverflow.com/questions/65838730/rotate-a-point-of-which-i-have-the-coordinates-around-another-known-point-by

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...