Skip to main content
deleted 17 characters in body
Source Link
AgentFire
  • 347
  • 2
  • 14

What is the complete code (C#, pseudo, does not matter) for calculating the resulting segment (or its absence) for the intersection of the segmentasegment and thea cylinder?

The segment is defined by Vector3(x,y,z) as Start and Vector3(x,y,z) as End.

The cylinder is defined by the same parameters plus floating-pointa value asfor Radius.

What is the complete code (C#, pseudo, does not matter) for calculating the resulting segment (or its absence) for the intersection of the segment and the cylinder?

The segment is defined by Vector3(x,y,z) as Start and Vector3(x,y,z) as End.

The cylinder is defined by the same parameters plus floating-point value as Radius.

What is the complete code (C#, pseudo, does not matter) for calculating the resulting segment (or its absence) for the intersection of asegment and a cylinder?

The segment is defined by Vector3(x,y,z) as Start and Vector3(x,y,z) as End.

The cylinder is defined by the same parameters plus a value for Radius.

Source Link
AgentFire
  • 347
  • 2
  • 14

Segment-Cylinder intersection

What is the complete code (C#, pseudo, does not matter) for calculating the resulting segment (or its absence) for the intersection of the segment and the cylinder?

The segment is defined by Vector3(x,y,z) as Start and Vector3(x,y,z) as End.

The cylinder is defined by the same parameters plus floating-point value as Radius.