EllipseArithmeticCalcScaledAxesRatio Method |
Calculates the new semi axes of a rotated ellipse when scaled by the factor scl
and returns the new ratio.
Namespace: RAYLASE.Marker.VectorGraphicElementAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntaxpublic static double CalcScaledAxesRatio(
dvec3 start,
dvec3 center,
double phi,
double oldRatio,
dvec2 scl,
out double newPhi,
out double newA,
out double newB
)
Parameters
- start dvec3
- Start point of the ellipse before scaling.
- center dvec3
- Center point of the ellipse before scaling.
- phi Double
- Orientation angle of the ellipse before scaling.
- oldRatio Double
- The ratio b/a of the minor and major semi axes before scaling.
- scl dvec2
- The scaling vector.
- newPhi Double
- Orientation angle of the ellipse after scaling.
- newA Double
[Missing <param name="newA"/> documentation for "M:RAYLASE.Marker.VectorGraphicElement.EllipseArithmetic.CalcScaledAxesRatio(GlmSharp.dvec3,GlmSharp.dvec3,System.Double,System.Double,GlmSharp.dvec2,System.Double@,System.Double@,System.Double@)"]
- newB Double
[Missing <param name="newB"/> documentation for "M:RAYLASE.Marker.VectorGraphicElement.EllipseArithmetic.CalcScaledAxesRatio(GlmSharp.dvec3,GlmSharp.dvec3,System.Double,System.Double,GlmSharp.dvec2,System.Double@,System.Double@,System.Double@)"]
Return Value
DoubleThe axis ratio of the scaled ellipse.
See Also