Namespace: DeltaEngine.Rendering3D.Shapes
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Shapes.Tests.Circle3DTests
2 unit tests call DeltaEngine.Rendering3D.Shapes.Circle3D.Radius
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test] public void RenderEllipseInOrigin() { CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero); var ellipse = new Circle3D(Vector3D.Zero, 3.0f, Color.Red); Assert.AreEqual(Vector3D.Zero, ellipse.Center); Assert.AreEqual(3.0f, ellipse.Radius); }
[Test] public void UpdateCenterAndRadius() { CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero); var ellipse = new Circle3D(Vector3D.Zero, 3.0f, Color.Red); Assert.AreEqual(Vector3D.Zero, ellipse.Center); Assert.AreEqual(3.0f, ellipse.Radius); ellipse.Center = Vector3D.UnitX; ellipse.Radius = 2.0f; Assert.AreEqual(Vector3D.UnitX, ellipse.Center); Assert.AreEqual(2.0f, ellipse.Radius); }
See Also