Jump to content

[HELP] createColRectangle


ViRuZGamiing

Recommended Posts

Posted

Hello,

How does createColRectangle work?

I want to create a ColRectangle from 2 points;

-1942.0435791016, 253.55065917969, 35.46875

-1964.8684082031, 308.1748046875, 35.473926544189

But how?

Thanks in advance!

Posted

In order to calculate the width and height to use with createColRectangle, you need to subtract the x and y coordinates of your points from each other like this:

width = math.abs(x1-x2) 
height = math.abs(y1-y2) 

Posted
In order to calculate the width and height to use with createColRectangle, you need to subtract the x and y coordinates of your points from each other like this:
width = math.abs(x1-x2) 
height = math.abs(y1-y2) 

Ok. but if i wanna make it from Point1 to Point2 : where Point1 is with 45 degree rotation from Point2. It's impossible to do it with Rectangel.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...