Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering3D Entity3D
DeltaEngine.Rendering3D.Shapes Circle3D
Namespace: DeltaEngine.Rendering3D.Shapes
Assembly: DeltaEngine.Rendering3D.Shapes (in DeltaEngine.Rendering3D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Circle3D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Circle3D | Initializes a new instance of the Circle3D class |
Methods
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
lastOrientation | (Inherited from Entity3D.) | |
lastPosition | (Inherited from Entity3D.) | |
lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) |
Properties
Name | Description | |
---|---|---|
Center | ||
IsActive | (Inherited from DrawableEntity.) | |
IsPauseable | (Inherited from Entity.) | |
IsVisible | (Inherited from DrawableEntity.) | |
NumberOfComponents | (Inherited from Entity.) | |
Orientation | (Inherited from Entity3D.) | |
Position | (Inherited from Entity3D.) | |
Radius | ||
RenderLayer | (Inherited from DrawableEntity.) | |
Scale | (Inherited from Entity3D.) | |
UpdatePriority | (Inherited from Entity.) |
Remarks
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