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
centerVector3daxisDirectionVector3daxisLengthFixed64radiusFixed64slabYFixedRangedirectionVector2dsupportVector2d
Returns
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
centerVector3dThe cone center.
axisDirectionVector3dThe normalized direction from base to apex.
heightFixed64The positive full parametric height.
radiusFixed64The nonnegative base radius.
slabYFixedRangeThe inclusive world-Y clipping interval.
directionVector2dThe normalized X/Z support direction.
supportVector2dThe winning planar support point when representable.
Returns
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
centerVector3daxisDirectionVector3daxisLengthFixed64radiusFixed64slabYFixedRangedirectionVector2dsupportVector2d