我正在为一些数据制作可视化图表,但遇到了一些问题。我需要根据像这样的数据绘制一些椭圆形:
{
x: 455.53 //the center x coordinate
y: 122.44 //the center y coordinate
e1: .24101 //value from -1 to 1, represents stretching along x when positive, along y when negative
e2: -.44211 //value from -1 to 1, represents stretching along the 45 degree line when positive and 135 when negative
}
简短的说,我不知道如何做到这一点...只是为了一次性可视化,所以效率不是问题。如果有人能建议如何操纵e1/e2来获取焦点或长/短轴和旋转角度,那就太棒了。谢谢!
e1
和e2
代表什么? - Picrofo Software