Show / Hide Table of Contents

Class Capsule

Inheritance
System.Object
Capsule
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public sealed class Capsule : ValueType

Constructors

Capsule(Vector3, Vector3, Single)

Declaration
public Capsule(Vector3 p0, Vector3 p1, float radius)
Parameters
Type Name Description
Vector3 p0
Vector3 p1
System.Single radius

Fields

P0

Declaration
public Vector3 P0
Field Value
Type Description
Vector3

P1

Declaration
public Vector3 P1
Field Value
Type Description
Vector3

Radius

Declaration
public float Radius
Field Value
Type Description
System.Single

Methods

Intersect(Line, ref Vector3, ref Vector3, ref Vector3, ref Vector3)

Declaration
public bool Intersect(Line line, ref Vector3 p1, ref Vector3 p2, ref Vector3 n1, ref Vector3 n2)
Parameters
Type Name Description
Line line
Vector3 p1
Vector3 p2
Vector3 n1
Vector3 n2
Returns
Type Description
System.Boolean

Intersect(Ray, ref Vector3, ref Vector3, ref Vector3, ref Vector3)

Declaration
public bool Intersect(Ray ray, ref Vector3 p1, ref Vector3 p2, ref Vector3 n1, ref Vector3 n2)
Parameters
Type Name Description
Ray ray
Vector3 p1
Vector3 p2
Vector3 n1
Vector3 n2
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾