Geometric Scaling of a Triangle

Expanding or shrinking a polygon board outline is a common but mathematically intensive task. Any polygon can be divided into a number of triangles, which can be individually scaled.To use this calculator enter 3 adjacent points from a polygon, and the center point will be the projected point of the new polygon. This also calculates the segment lengths and angles of the original triangle.

The algorithm uses the law of cosines to compute the angles of the original triangle. It also computes the angles for lines which bisect each angle, by averaging the angles of the two adjacent segments. Using a little trig it computes the distance from the old point to the new point. This distance with the bisecting angle is sufficient to compute the (x,y) differential to the new point. The differential is added to the old coordinate location to generate the new one.

Points of Original Triangle
Point 1 , (x,y)
Point 2 , (x,y)
Point 3 , (x,y)
Segment Lengths and Angles of Original Triangle
Lengths L1, L2, L3
Angles a1, a2, a3
Points of New Triangle
Point 1B , (x,y)
Point 2B , (x,y)
Point 3B , (x,y)
Water Level Sensor

[Plant Database], [Soil Moisture Sensor] [Water Level Sensor] [Soil Moisture Meter]

© Copyright 2024 Daycounter, Inc. All rights Reserved. There is no guarantee for any information on this website. Use at your own risk.