s&box docs

public sealed struct Cone

A tapered shape between two points with a radius at each end. Supports cones and cylinders, with flat ends.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

public Cone(Vector3 a, Vector3 b, float ra, float rb)

A tapered shape between two points with a radius at each end. Supports cones and cylinders, with flat ends.

Methods

Showing 2 methods

public bool Contains(Vector3 p)

Check if a point is inside.

public float GetEdgeDistance(Vector3 p)

Distance from a point to the surface.

Properties

Showing 3 properties

public BBox Cone.Bounds { get; set; }

Bounding box that contains the shape.

public Vector3 Cone.RandomPointInside { get; set; }

Get a random point inside.

public Vector3 Cone.RandomPointOnEdge { get; set; }

Get a random point on the surface.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.System
Doc IDT:Cone

On this page