struct
Cone
public sealed struct Cone A tapered shape between two points with a radius at each end.
Supports cones and cylinders, with flat ends.
Constructors
Cone(Vector3 a, Vector3 b, Single ra, Single rb) A tapered shape between two points with a radius at each end.
Supports cones and cylinders, with flat ends.
Properties
| Name | Type | Description |
RandomPointInside | Vector3 | Get a random point inside. |
RandomPointOnEdge | Vector3 | Get a random point on the surface. |
Bounds | BBox | Bounding box that contains the shape. |
Methods
Single GetEdgeDistance(Vector3 p) Distance from a point to the surface.
Boolean Contains(Vector3 p) Check if a point is inside.
Fields
| Name | Type | Description |
CenterA | Vector3 | Start point. |
CenterB | Vector3 | End point. |
RadiusA | Single | Radius at the start. |
RadiusB | Single | Radius at the end. |
Assembly: Sandbox.System Full Name: Cone