001/** 002 * Copyright (c) 2008-2014 Ardor Labs, Inc. 003 * 004 * This file is part of Ardor3D. 005 * 006 * Ardor3D is free software: you can redistribute it and/or modify it 007 * under the terms of its license which may be found in the accompanying 008 * LICENSE file or at <http://www.ardor3d.com/LICENSE>. 009 */ 010 011package com.ardor3d.extension.model.md3; 012 013import com.ardor3d.math.Vector3; 014import com.ardor3d.math.type.ReadOnlyVector3; 015 016/** 017 * frame of MD3: http://en.wikipedia.org/wiki/MD3_%28file_format%29#Frame 018 */ 019final class Md3Frame { 020 021 /** First corner of the bounding box. */ 022 final Vector3 _minBounds; 023 /** Second corner of the bounding box. */ 024 final Vector3 _maxBounds; 025 /** Local origin, usually (0, 0, 0). */ 026 final Vector3 _localOrigin; 027 /** Radius of the bounding sphere. */ 028 final float _radius; 029 /** name */ 030 final String _name; 031 032 Md3Frame(final ReadOnlyVector3 minBounds, final ReadOnlyVector3 maxBounds, final ReadOnlyVector3 localOrigin, 033 final float radius, final String name) { 034 super(); 035 _minBounds = new Vector3(); 036 _maxBounds = new Vector3(); 037 _localOrigin = new Vector3(); 038 _minBounds.set(minBounds); 039 _maxBounds.set(maxBounds); 040 _localOrigin.set(localOrigin); 041 _radius = radius; 042 _name = name; 043 } 044 045}