Exemplo n.º 1
0
	Vector4<float> Converter::toVector4(const std::string &str)
	{
		std::vector<float> floatValues = floatSplit(str, 4);
		return Vector4<float>(floatValues[0], floatValues[1], floatValues[2], floatValues[3]);
	}
Exemplo n.º 2
0
	Vector2<float> Converter::toVector2(const std::string &str)
	{
		std::vector<float> floatValues = floatSplit(str, 2);
		return Vector2<float>(floatValues[0], floatValues[1]);
	}
Exemplo n.º 3
0
	Point3<float> Converter::toPoint3(const std::string &str)
	{
		std::vector<float> floatValues = floatSplit(str, 3);
		return Point3<float>(floatValues[0], floatValues[1], floatValues[2]);
	}
Exemplo n.º 4
0
	/**
	 * Returns chunk value in vector 4
	 * @return Chunk value in vector 4
	 */
	Vector4<float> XmlChunk::getVector4Value() const
	{
		std::vector<float> floatValues = floatSplit(getStringValue(), 4);
		return Vector4<float>(floatValues[0], floatValues[1], floatValues[2], floatValues[3]);
	}
Exemplo n.º 5
0
	/**
	 * Returns chunk value in vector 2
	 * @return Chunk value in vector 2
	 */
	Vector2<float> XmlChunk::getVector2Value() const
	{
		std::vector<float> floatValues = floatSplit(getStringValue(), 2);
		return Vector2<float>(floatValues[0], floatValues[1]);
	}
Exemplo n.º 6
0
	/**
	 * Returns chunk value in point 3
	 * @return Chunk value in point 3
	 */
	Point3<float> XmlChunk::getPoint3Value() const
	{
		std::vector<float> floatValues = floatSplit(getStringValue(), 3);
		return Point3<float>(floatValues[0], floatValues[1], floatValues[2]);
	}