예제 #1
0
 public static IntervalQuaternion FromDiameter(Quaternion diameter)
 {
     return(FromRadius(UtilQuaternion.Scale(diameter, 0.5f)));
 }
예제 #2
0
 // Returns the radius of the interval.
 public Quaternion GetRadius()
 {
     return(UtilQuaternion.Scale(GetDiameter(), 0.5f));
 }
예제 #3
0
 public static IntervalQuaternion FromCenterDiameter(Quaternion center, Quaternion diameter)
 {
     return(FromCenterRadius(center, UtilQuaternion.Scale(diameter, 0.5f)));
 }