public bool Equals(CapsuleF v, float epsilon) { if (!Point1.Equals(ref v.Point1, epsilon)) { return(false); } if (!Point2.Equals(ref v.Point2, epsilon)) { return(false); } if (Math.Abs(Radius - v.Radius) > epsilon) { return(false); } return(true); }
public CapsuleF(CapsuleF source) { Point1 = source.Point1; Point2 = source.Point2; Radius = source.Radius; }