Glare.Box2.Relative C# (CSharp) Method

Relative() public static method

Create a Box2 by providing the minimum extent and the size of each side.
public static Relative ( Length minX, Length minY, Length sizeX, Length sizeY ) : Box2
minX Length
minY Length
sizeX Length
sizeY Length
return Box2
        public static Box2 Relative(  Length minX ,  Length minY ,   Length sizeX ,  Length sizeY  )
        {
            Box2 result;
                                            result.Min.X = minX;
                        result.Max.X = minX + sizeX;
                                            result.Min.Y = minY;
                        result.Max.Y = minY + sizeY;
                                        return result;
        }

Same methods

Box2::Relative ( System.Vector2 min, System.Vector2 size ) : Box2
Box2::Relative ( Length minX, Length minY, Length sizeX, Length sizeY, Box2 &result ) : void
Box2::Relative ( System.Vector2 min, System.Vector2 size, Box2 &result ) : void