Пример #1
0
 public FVector4 TransformFVector(FVector v)
 {
     return(TransformFVector4(new FVector4(v.X, v.Y, v.Z, 0f)));
 }
Пример #2
0
 public FBox(FBox box)
 {
     Min     = box.Min;
     Max     = box.Max;
     IsValid = box.IsValid;
 }
Пример #3
0
        public readonly byte    IsValid; // It's a bool

        /// <summary>
        /// Creates and initializes a new box from the specified extents.
        /// </summary>
        /// <param name="min">The box's minimum point.</param>
        /// <param name="max">The box's maximum point.</param>
        public FBox(FVector min, FVector max, byte isValid = 1)
        {
            Min     = min;
            Max     = max;
            IsValid = isValid;
        }
Пример #4
0
 public FSphere(float x, float y, float z, float w)
 {
     Center = new FVector(x, y, z);
     W      = w;
 }
Пример #5
0
 public FBoxSphereBounds(FVector origin, FVector boxExtent, float sphereRadius)
 {
     Origin       = origin;
     BoxExtent    = boxExtent;
     SphereRadius = sphereRadius;
 }
Пример #6
0
 /// <summary>
 /// Constructor from 3D Vector and W
 /// </summary>
 /// <param name="v">3D Vector to set first three components.</param>
 /// <param name="w">W Coordinate.</param>
 public FVector4(FVector v, float w = 1f) : this(v.X, v.Y, v.Z, w)
 {
 }