Exemplo n.º 1
0
 public FVector4 TransformFVector(FVector v)
 {
     return(TransformFVector4(new FVector4(v.X, v.Y, v.Z, 0f)));
 }
Exemplo n.º 2
0
 public FBox(FBox box)
 {
     Min     = box.Min;
     Max     = box.Max;
     IsValid = box.IsValid;
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 public FSphere(float x, float y, float z, float w)
 {
     Center = new FVector(x, y, z);
     W      = w;
 }
Exemplo n.º 5
0
 public FBoxSphereBounds(FVector origin, FVector boxExtent, float sphereRadius)
 {
     Origin       = origin;
     BoxExtent    = boxExtent;
     SphereRadius = sphereRadius;
 }
Exemplo n.º 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)
 {
 }