Table of Contents

Class FixedSlabProjection

Namespace
FixedMathSharp.Geometry
Assembly
FixedMathSharp.dll

Provides planar support points for centered finite shapes clipped to a closed world-Y slab.

public static class FixedSlabProjection
Inheritance
FixedSlabProjection
Inherited Members

Methods

TryGetCapsuleSupport(Vector3d, Vector3d, Fixed64, Fixed64, FixedRange, Vector2d, out Vector2d)

Attempts to return the support point of a centered capsule's X/Z projection after clipping the capsule to slabY.

public static bool TryGetCapsuleSupport(Vector3d center, Vector3d axisDirection, Fixed64 axisLength, Fixed64 radius, FixedRange slabY, Vector2d direction, out Vector2d support)

Parameters

center Vector3d
axisDirection Vector3d
axisLength Fixed64
radius Fixed64
slabY FixedRange
direction Vector2d
support Vector2d

Returns

bool

TryGetConeSupport(Vector3d, Vector3d, Fixed64, Fixed64, FixedRange, Vector2d, out Vector2d)

Attempts to return the support point of a centered finite cone's X/Z projection after clipping the cone to slabY.

public static bool TryGetConeSupport(Vector3d center, Vector3d axisDirection, Fixed64 height, Fixed64 radius, FixedRange slabY, Vector2d direction, out Vector2d support)

Parameters

center Vector3d

The cone center.

axisDirection Vector3d

The normalized direction from base to apex.

height Fixed64

The positive full parametric height.

radius Fixed64

The nonnegative base radius.

slabY FixedRange

The inclusive world-Y clipping interval.

direction Vector2d

The normalized X/Z support direction.

support Vector2d

The winning planar support point when representable.

Returns

bool

true when the clipped cone has a representable support point.

TryGetCylinderSupport(Vector3d, Vector3d, Fixed64, Fixed64, FixedRange, Vector2d, out Vector2d)

Attempts to return the support point of a centered finite cylinder's X/Z projection after clipping the cylinder to slabY.

public static bool TryGetCylinderSupport(Vector3d center, Vector3d axisDirection, Fixed64 axisLength, Fixed64 radius, FixedRange slabY, Vector2d direction, out Vector2d support)

Parameters

center Vector3d
axisDirection Vector3d
axisLength Fixed64
radius Fixed64
slabY FixedRange
direction Vector2d
support Vector2d

Returns

bool