コード例 #1
0
        public static LmAABB Unpack(LmMsgPck msg)
        {
            var min = LmVector3.Unpack(msg);
            var max = LmVector3.Unpack(msg);

            return(new LmAABB(min, max));
        }
コード例 #2
0
 public LmOrientedBB(LmVector3 center, LmVector3 xHalfExtent, LmVector3 yHalfExtent, LmVector3 zHalfExtent)
 {
     this.Center      = center;
     this.XHalfExtent = xHalfExtent;
     this.YHalfExtent = yHalfExtent;
     this.ZHalfExtent = zHalfExtent;
 }
コード例 #3
0
 public LmMatrix(LmVector3 row0, LmVector3 row1, LmVector3 row2, LmVector3 row3)
 {
     this.Row0 = row0;
     this.Row1 = row1;
     this.Row2 = row2;
     this.Row3 = row3;
 }
コード例 #4
0
        public static LmOrientedBB Unpack(LmMsgPck msg)
        {
            var center      = LmVector3.Unpack(msg);
            var xHalfExtent = LmVector3.Unpack(msg);
            var yHalfExtent = LmVector3.Unpack(msg);
            var zHalfExtent = LmVector3.Unpack(msg);

            return(new LmOrientedBB(center, xHalfExtent, yHalfExtent, zHalfExtent));
        }
コード例 #5
0
        public static LmMatrix Unpack(LmMsgPck msg)
        {
            var row0 = LmVector3.Unpack(msg);
            var row1 = LmVector3.Unpack(msg);
            var row2 = LmVector3.Unpack(msg);
            var row3 = LmVector3.Unpack(msg);

            return(new LmMatrix(row0, row1, row2, row3));
        }
コード例 #6
0
 public LmAABB(LmVector3 min, LmVector3 max)
 {
     this.Min = min;
     this.Max = max;
 }