Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Shape intersection  (Read 960 times)

0 Members and 1 Guest are viewing this topic.

QuantumKitten

  • Newbie
  • *
  • Posts: 1
    • View Profile
Shape intersection
« on: May 24, 2015, 04:19:24 am »
Hey guys, I just started learning SFML today and I tried to draw a couple of geometric figures on the screen. Now, I am just wondering how exactly can I draw another shape (for example another circle, given the fact that all my shapes have their center as their Origin) at the intersection point between two other shapes for example. Say we have two circles and I want to draw some other little circles at the intersection points between the two main circles. How can I do that? Thanks!

Also the "circles" are in fact the circles outlines (thickness is variable), the circles themselves are set to Transparent.

« Last Edit: May 24, 2015, 04:25:17 am by QuantumKitten »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
AW: Shape intersection
« Reply #1 on: May 24, 2015, 07:53:47 am »
Set the correct position and draw them.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/