`I'm trying to convert a lat/lon pair to a pixel coordinate. I have found this mercator projection but I don't understand the code. What is the factor,x_adj, y_adj variable? When I run the code without those constants my lat/lon pair is not...`
`I'm trying to make half of a rectangle - devided diagonally - to fit inside a triangle. Rotation works well, so does sizing of the rectangle. But once I try to skew it, it all gets messed up. Basically I want to simulate a 3D surface.   That mean...`
`How would you arc or bend a cylinder type geometry (that has distortion) in three.js?  Id like to specify these parameters:   Bend Start - at what percent of the cylinder's height the bend starts Bend End - at what percent of the cylinder's h...`
`This is definitely pushing the limits for my trig knowledge.  Is there a formula for calculating an intersection point between a quadratic bezier curve and a line?  Example:  in the image below, I have P1, P2, C (which is the control point) and X1, X...`
`I am rendering SVG image dynamically and created rotated text. If the rotated text is overlap with other text, i need to remove that text. But i can't measure the rotated text to create bounds and check with next label text region.  I have create...`
`I know a matrix [x scale, y skew, x skew, y scale, trans x, trans y], and would like to get the angle in degrees.   thanks!...`
`I am using this color wheel, and I want to change the color of the color wheel programmatically. So if I have a color value (rgb, hsv etc.) I want to change the color wheel to that specific color?  For example, if I have rgb(255, 255, 80), how can I...`
`I'm using this piece of code to draw arcs and so far it's been great, however I've encountered an issue with textPath that I cannot figure out.  Please run the following snippet.     function polarToCartesian(centerX, centerY, radius, ang...`
`I have a value and its cosine as:  -0.2567721374914637 Cosine: -0.04253775592822526   Compare what we get in Python:  >>> import math >>> math.cos(-0.2567721374914637) 0.9672147629178562   Is there a way I can do trig in JavaScript...`
`This question already has answers here:...`

# Top Questions

©2020 All rights reserved.